Re: ZEND_MM_SMALL_FREE_BUCKET and ZEND_MM_REST_BUCKET

From: Date: Fri, 02 Mar 2012 13:43:47 +0000
Subject: Re: ZEND_MM_SMALL_FREE_BUCKET and ZEND_MM_REST_BUCKET
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-58484@lists.php.net to get a copy of this message
Laruence and I wrote articles about ZendMM internals. You would find them at http://www.laruence.com/2011/11/09/2277.html and http://julien-pauli.developpez.com/tutoriels/php/internals/zend-memory-manager/ . You can use any translator to get them in English For basic use, see the readme at http://lxr.php.net/xref/PHP_5_4/Zend/README.ZEND_MM Hope this helps :) Julien.P On Fri, Mar 2, 2012 at 1:51 PM, Adi Mutu <adi_mutu06@yahoo.com> wrote: > > > 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))

« previous php.internals (#58484) next »