Re: purify: Free memory read. in shutdown_memory_manager

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: purify: Free memory read. in shutdown_memory_manager
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-3868@lists.php.net to get a copy of this message
> At 10:52 02-03-99 -0500, Rasmus Lerdorf wrote: > >The PHP memory manager is very simple. It just allocates a chunk of > >memory and then hands it out in smaller chunks when requested and > >maintains a linked list of these allocated blocks. If someone forgets to > >efree() a particular block, then on request shutdown it walks through the > >linked list and writes a little note in the error log informing us that > >someone didn't efree something and then it frees the entire chunk. It is > >an effective safety net which guards against memory leaks. > > It's actually simpler than that - it doesn't allocate any big chunks and > divides them to smaller chunks. It allocates exactly one chunk of memory > for every memory block requested. Ah right, I was confusing PHP2 and PHP3 concepts here. -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3868) next »