[php-src] PR #11717: Fix GH-11715: opcache.interned_strings_buffer either has no effect or…

From: Date: Mon, 17 Jul 2023 00:56:36 +0000
Subject: [php-src] PR #11717: Fix GH-11715: opcache.interned_strings_buffer either has no effect or…
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-23062@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/11717 Author: nielsdos … opcache_get_status() / phpinfo() is wrong There are a couple of oddities. 1) The interned strings buffer comprises the whole hashtable datastructure. Therefore, it seems that the interned strings buffer size is the size of only said table. However, in the current code it also includes the size of the zend_accel_shared_globals. 2) ZCSG(interned_strings).end is computed starting from the accelerator globals struct itself. I would expect it to start from the part where the interned strings table starts. 3) When computing the used size, it is done using ZCSG(interned_strings).end - ZCSG(interned_strings).start. However, this does not include the uin32_t slots array because ZCSG(interned_strings).start pointers after that array. This patch corrrects these 3 points.

« previous php.git-pulls (#23062) next »