Re: [PHP-DEV] OPCache: invalidate vs unlink

2018-01-21 Thread Fleshgrinder
On 1/21/2018 1:04 PM, Nikita Popov wrote: > Unless you are running specifically into the max files limit (and not the > memory limit), unlinking from the hashtable will not provide any benefit. > It does exactly what it says on the tin, and in particular it's not going > to free up any space. > >

Re: [PHP-DEV] OPCache: invalidate vs unlink

2018-01-21 Thread Nikita Popov
On Sun, Jan 21, 2018 at 11:00 AM, Fleshgrinder wrote: > `zend_accel_invalidate` is exposed to userland as `opcache_invalidate` > and marks a script as wasted, however, it does not remove that script > from the OPCache. > > There is also the `zend_accel_hash_unlink` that

[PHP-DEV] OPCache: invalidate vs unlink

2018-01-21 Thread Fleshgrinder
`zend_accel_invalidate` is exposed to userland as `opcache_invalidate` and marks a script as wasted, however, it does not remove that script from the OPCache. There is also the `zend_accel_hash_unlink` that actually does that, it's there since the beginning of time but without a single call to it