Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12668 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31351 invoked by uid 1010); 9 Sep 2004 14:45:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 20106 invoked from network); 9 Sep 2004 14:37:24 -0000 Received: from unknown (HELO frontend1.messagingengine.com) (66.111.4.30) by pb1.pair.com with SMTP; 9 Sep 2004 14:37:24 -0000 Received: from web1.messagingengine.com (web1.internal [10.202.2.210]) by frontend1.messagingengine.com (Postfix) with ESMTP id DF502C15544; Thu, 9 Sep 2004 10:37:23 -0400 (EDT) Received: by web1.messagingengine.com (Postfix, from userid 99) id 641C66F0; Thu, 9 Sep 2004 10:37:24 -0400 (EDT) Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 1.5 (F2.73; T1.001; A1.62; B3.01; Q3.01) Cc: internals@lists.php.net References: <1094723466.25363.204005102@webmail.messagingengine.com> <414068F4.1080503@hristov.com> In-Reply-To: <414068F4.1080503@hristov.com> To: "Andrey Hristov" Date: Thu, 09 Sep 2004 07:37:24 -0700 X-Sasl-Enc: pdaYjSvFx+kleWuc6WKsKg 1094740644 Message-ID: <1094740644.16832.204022273@webmail.messagingengine.com> Subject: Re: [PHP-DEV] info needed regarding TSRM thread local storage From: kameshj@fastmail.fm ("Kamesh Jayachandran") Thanks Andrey. I have Apache with worker thread mpm configured. With this MBO_0 macro not defined I get a memory leak of 2,46,888 bytes. With this MBO_0 macro defined I get a memory leak of 51,912 bytes. If I look at the code also it seems that dtor of the resources are called only if MBO_0 macro is defined. Correct me if I am wrong. With regards Kamesh Jayachandran On Thu, 09 Sep 2004 16:30:12 +0200, "Andrey Hristov" said: > Hi, > probably MBO_0 stands for MarcusBOerger_0 . I am not sure whether this > was somewehere in > the coding standards > document, but this means that the programmer has commented the code by > using the > preprocessor. The programmer > has to put his name and a suffix _0 . Usually code commented this way is > quite > experimental and can lead to problems, > but was left for some reason. > It looks like this. > > Andrey > > Kamesh Jayachandran wrote: > > Hi All, > > what this MBO_0 mean? > > I could see the MBO_0 ifdefs removed in 1.62 version of TSRM.c whether > > this change has got anything to do with memory leak fix. > > I could see 246888 bytes of leak for each thread. > > Even the simple script causes 60 bytes of leak. > > > > Where and when the thread local storage is freed?. > > > > With regards > > Kamesh Jayachandran > > >