23 TAU_PROFILE(
"bool DeletedBufferChain::validate(void *)",
" ", TAU_USER);
28 #if defined(USE_DELETEDCHAINFLAG) && defined(USE_DELETED_CHAIN) 29 const ObjectNode *obj = buffer_to_node(ptr);
33 #endif // USE_DELETEDCHAINFLAG 47 INLINE
void *DeletedBufferChain::
48 node_to_buffer(DeletedBufferChain::ObjectNode *node) {
49 #if defined(USE_DELETEDCHAINFLAG) && defined(USE_DELETED_CHAIN) 52 return (
void *)(((
char *)node) + flag_reserved_bytes);
61 INLINE DeletedBufferChain::ObjectNode *DeletedBufferChain::
62 buffer_to_node(
void *ptr) {
63 #if defined(USE_DELETEDCHAINFLAG) && defined(USE_DELETED_CHAIN) 66 return (ObjectNode *)(((
char *)ptr) - flag_reserved_bytes);
68 return (ObjectNode *)ptr;
size_t get_buffer_size() const
Returns the size of the buffer that is actually returned at each request.
static Integer get(const Integer &var)
Atomically retrieves the snapshot value of the indicated variable.
bool validate(void *ptr)
Returns true if the pointer is valid, false if it has been deleted or if it was never a valid pointer...