Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58591 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91785 invoked from network); 5 Mar 2012 06:45:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2012 06:45:07 -0000 Received: from [127.0.0.1] ([127.0.0.1:7491]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 59/00-25873-3F0645F4 for ; Mon, 05 Mar 2012 01:45:07 -0500 Authentication-Results: pb1.pair.com smtp.mail=michee08@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=michee08@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.49 as permitted sender) X-PHP-List-Original-Sender: michee08@gmail.com X-Host-Fingerprint: 209.85.216.49 mail-qw0-f49.google.com Received: from [209.85.216.49] ([209.85.216.49:58885] helo=mail-qw0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/00-25873-800645F4 for ; Mon, 05 Mar 2012 01:41:14 -0500 Received: by qafi29 with SMTP id i29so566615qaf.8 for ; Sun, 04 Mar 2012 22:41:10 -0800 (PST) Received-SPF: pass (google.com: domain of michee08@gmail.com designates 10.229.76.149 as permitted sender) client-ip=10.229.76.149; Authentication-Results: mr.google.com; spf=pass (google.com: domain of michee08@gmail.com designates 10.229.76.149 as permitted sender) smtp.mail=michee08@gmail.com; dkim=pass header.i=michee08@gmail.com Received: from mr.google.com ([10.229.76.149]) by 10.229.76.149 with SMTP id c21mr2362630qck.5.1330929670020 (num_hops = 1); Sun, 04 Mar 2012 22:41:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=GhJOhp9DvlPigr+wAt0CRkvTS0F/7r/DXkifw8QczAA=; b=FS4PNB6kAIMOsVxrpOZxty/rqEbiLEonbZTXUrphw7VW3gitmX7wxmdFhJdBuUxMjv RtL2mVH/0UwNudDm7g6vvMOjlPDM7UUwgn9UE1FQYHlrBU8Qa12bh9opyjav7Gw+1+NW TEUXeVwUnlz6xWUvPxQRceV7+576oeRZjNakLj9stRIh/Z/21g4sGbY1aBcIFoLreDUY /6vWPXXhtR1EEt6NDNqBNMibwB/xh2M/SLybO+y3jS63Rnk02Y/q+PRRhJjrQMg3knTZ 9FOIK5gHGN8V8FFDO1YrwAzLusQUQnMInWBngASZ8SgszCcRByHP/+cpMNwzYNzLIhgb OxcQ== MIME-Version: 1.0 Received: by 10.229.76.149 with SMTP id c21mr2024466qck.5.1330929669974; Sun, 04 Mar 2012 22:41:09 -0800 (PST) Received: by 10.229.10.195 with HTTP; Sun, 4 Mar 2012 22:41:09 -0800 (PST) Date: Mon, 5 Mar 2012 08:41:09 +0200 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=00235429e34c332a4104ba7936f0 Subject: Re: [PHP-DEV] ZEND_MM_SMALL_FREE_BUCKET and ZEND_MM_REST_BUCKET From: michee08@gmail.com (adit adit) --00235429e34c332a4104ba7936f0 Content-Type: text/plain; charset=ISO-8859-1 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? --00235429e34c332a4104ba7936f0--