Re: GMP memory allocator, various issues
| From: | Stas Malyshev | Date: | Fri, 10 Oct 2014 16:50:17 +0000 |
| Subject: | Re: GMP memory allocator, various issues | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-77852@lists.php.net to get a copy of this message | ||
Hi!
> Can you please elaborate a little ?
> Doesn't such leak have to be fixed in ext/gmp ?
We clean up the memory at the end of the request. But if the request
ended abnormally and we had some active gmp objects, with gmp data
allocated outside emalloc we could not clean that and it ends up being
persistent memory leak. Also, of course, that also excepts gmp objects
from PHP memory limit, which makes it less useful.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/