Re: ZEND_MM_SMALL_FREE_BUCKET and ZEND_MM_REST_BUCKET

From: Date: Mon, 05 Mar 2012 06:41:09 +0000
Subject: Re: ZEND_MM_SMALL_FREE_BUCKET and ZEND_MM_REST_BUCKET
Groups: php.internals 
Request: Send a blank email to internals+get-58591@lists.php.net to get a copy of this message
I got some follow-up questions about Zend MM, 1) Why does struct _zend_mm_small_free_block contain pointers to _zend_mm_free_block and not to _zend_mm_small_free_block ? I'm sure it's correct, i just want to know why. 2)zend_mm_free_block *free_buckets[ZEND_MM_NUM_BUCKETS*2]; What sort of elements are in that array? perhaps they're not zend_mm_free_block? 3) also the expression: (zend_mm_free_block*) ((char*)&heap->free_buckets[index * 2] + \ 455 sizeof(zend_mm_free_block*) * 2 - \ 456 sizeof(zend_mm_small_free_block)) What does that give you? First you get the address of a poiner, thus you have a ** and then you add smth sizeof(zend_mm_free_block*) * 2 , and then you substract sizeof(zend_mm_small_free_block) which is a different type of structure. Thanks, A. ps: why the mails i try to send to this address from my yahoo accout, are coming back from yahoo with error "No MX address for lists.php.net", any idea? Probably yahoo's fault?

« previous php.internals (#58591) next »