|
@@ -147,19 +147,6 @@ void * realloc(void *ptr, size_t size) {
|
|
|
memcpy(return_ptr, ptr,
|
|
|
owner_raw_block->size - sizeof(raw_block_header_t));
|
|
|
|
|
|
-#ifdef WITH_DEBUG
|
|
|
- LOCK_GLOBAL();
|
|
|
- LOCK_RAW_BLOCK(owner_raw_block);
|
|
|
- SLIST_REMOVE(&systemallocator.bb_head, owner_raw_block,
|
|
|
- raw_block_header_s, pointers);
|
|
|
- UNLOCK_RAW_BLOCK(owner_raw_block);
|
|
|
- LOCK_RAW_BLOCK(new_block);
|
|
|
- SLIST_INSERT_HEAD(&systemallocator.bb_head,
|
|
|
- new_block, pointers);
|
|
|
- UNLOCK_RAW_BLOCK(new_block);
|
|
|
- UNLOCK_GLOBAL();
|
|
|
-#endif /* WITH_DEBUG */
|
|
|
-
|
|
|
#ifdef REQUEST_SIZE_INFO
|
|
|
UPDATE_GLOBAL_STATS(REALLOC_GT, size -
|
|
|
owner_raw_block->requested_size);
|