ZEND_MM_SMALL_FREE_BUCKET and ZEND_MM_REST_BUCKET

From: Date: Fri, 02 Mar 2012 12:51:43 +0000
Subject: ZEND_MM_SMALL_FREE_BUCKET and ZEND_MM_REST_BUCKET
Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message


Hello,

Can somebody shed some light on these 2 defines? Thanks.


#define ZEND_MM_SMALL_FREE_BUCKET(heap, index) \ (zend_mm_free_block*)
((char*)&heap->free_buckets[index * 2] + \     sizeof(zend_mm_free_block*) * 2 - \
     sizeof(zend_mm_small_free_block))      #define ZEND_MM_REST_BUCKET(heap) \     
(zend_mm_free_block*)((char*)&heap->rest_buckets[0] + \      sizeof(zend_mm_free_block*)
* 2 - \      sizeof(zend_mm_small_free_block)) 


Thread (12 messages)

« previous php.internals (#58474) next »