Title
Allow recycling of pointers after undeclare_no_pointers
Status
c++11
Section
[util.dynamic.safety]
Submitter
BSI

Created on 2010-08-25.00:00:00 last changed 161 months ago

Messages

Date: 2010-10-31.20:50:05

Proposed resolution:

Update [util.dynamic.safety] p.9:

void declare_no_pointers(char *p, size_t n);

9 Requires: No bytes in the specified range have been previously registeredare currently registered with declare_no_pointers(). If the specified range is in an allocated object, then it must be entirely within a single allocated object. The object must be live until the corresponding undeclare_no_pointers() call. [..]

Date: 2010-10-24.03:04:13

Addresses GB-103

The precondition to calling declare_no_pointers is that no bytes in the range "have been previously registered" with this call. As written, this precondition includes bytes in ranges, even after they have been explicitly unregistered with a later call to undeclare_no_pointers.

History
Date User Action Args
2011-08-23 20:07:26adminsetstatus: wp -> c++11
2011-04-11 11:23:23adminsetstatus: voting -> wp
2011-03-05 15:24:28adminsetstatus: ready -> voting
2010-11-13 16:25:04adminsetstatus: open -> ready
2010-10-26 11:52:55adminsetmessages: + msg5139
2010-10-24 03:04:13adminsetmessages: + msg4907
2010-08-25 00:00:00admincreate