logo       

Re: cvs: ZendEngine2(PHP_5_2) / zend_alloc.c zend_alloc.h: msg#00036

Subject: Re: cvs: ZendEngine2(PHP_5_2) / zend_alloc.c zend_alloc.h
OK, thanks for the explanation. I though ZEND_USE_MALLOC_MM had other semantic.
Nuno


No. By default we use Zend Memory Manager.
ZEND_USE_MALLOC_MM allows disable it (and use malloc instead)  at startup
time, using environment variable USE_ZEND_ALLOC=0

Thanks. Dmitry.

-----Original Message-----
From: Nuno Lopes [mailto:nlopess@xxxxxxx]
Sent: Thursday, September 14, 2006 4:58 PM
To: Dmitry Stogov; zend-engine-cvs@xxxxxxxxxxxxx
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) /
zend_alloc.c zend_alloc.h


> dmitry Thu Sep 14 08:00:45 2006 UTC
>
>  Modified files:              (Branch: PHP_5_2)
>    /ZendEngine2 zend_alloc.c zend_alloc.h
>  Log:
>  Added is_zend_mm() to allow runtime check for zend memory manager
>
>
>
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.c?r1=1.144.2.3.2.
> 9&r2=1.144.2.3.2.10&diff_format=u
> Index: ZendEngine2/zend_alloc.c
> diff -u ZendEngine2/zend_alloc.c:1.144.2.3.2.9
> ZendEngine2/zend_alloc.c:1.144.2.3.2.10
> --- ZendEngine2/zend_alloc.c:1.144.2.3.2.9 Thu Aug 31 11:53:57 2006
> +++ ZendEngine2/zend_alloc.c Thu Sep 14 08:00:44 2006
> @@ -1619,6 +1619,15 @@
> static zend_alloc_globals alloc_globals;
> #endif
>
> +ZEND_API int is_zend_mm(TSRMLS_D)
> +{
> +#if ZEND_USE_MALLOC_MM
> + return AG(mm_heap)->use_zend_alloc;
> +#else

shouldn't be 'return 0;' here?

> + return 1;
> +#endif
> +}
> +

--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe