Re: Change default method of disabling JIT for PHP 8.4

From: Date: Wed, 18 Oct 2023 11:06:30 +0000
Subject: Re: Change default method of disabling JIT for PHP 8.4
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-121377@lists.php.net to get a copy of this message
On Tue, Oct 17, 2023 at 8:46 PM Daniil Gentili <daniil@daniil.it> wrote: > Hello, > > I would like to submit an RFC and PR to change a few INI defaults for > opcache, changing how JIT is disabled by default. > > Currently, JIT is disabled by default using the > |opcache.jit_buffer_size=0| default, instead of |opcache.jit=0|. > > I.e. here are the defaults for these two configuration entries: > > - opcache.jit=tracing > - opcache.jit_buffer_size=0 > > This effectively disables JIT not because jit=0, but rather > because > the buffer size is set to 0. > > I would like to change these defaults to: > > - opcache.jit=off > - opcache.jit_buffer_size=64m (taken from > https://github.com/php/php-src/pull/12425/files, any smaller > multiple of > 2 causes the buffer to fill up when running moderately sized projects > like Psalm or PHPStan). > > What do you think? > Actually, now opcache.jit=0/off/no/false doesn't disable JIT completely. It makes PHP start requests with JIT disabled, but this may be changed during the request. JIT may be disabled completely by opcache.jit=disable Thanks. Dmitry. > > > Kind regards, > > Daniil Gentili. >

« previous php.internals (#121377) next »