Re: Don't add simple objects to GC's roots

From: Date: Sat, 09 Sep 2017 06:59:56 +0000
Subject: Re: Don't add simple objects to GC's roots
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-100482@lists.php.net to get a copy of this message
> On 30 Jul 2017, at 18:19, Andreas Treichel <gmblar@gmail.com> wrote: > > Hi, > >> So I propose to make the gc_disable function accept one zval reference as >> parameter. And if gc_disable get that zval, gc_disable just drop the zval’s >> GC_COLLECTABLE flag, which will hint the PHP gc not to trace that zval. > > i dont know if this is a good idea or not. But for the "s" in solid, create a new > function like gc_exclude to exclude variables from the garbage collector and do not add a parameter > to gc_disable. A new function gc_hint($zval, bool $collectable) has been introduced at https://github.com/php/php-src/pull/2665/files

« previous php.internals (#100482) next »