[php-src] PR #22595: perf: ZTS: move AG and SCNG into native __thread storage, replay of #22231

From: Date: Sat, 04 Jul 2026 14:37:09 +0000
Subject: [php-src] PR #22595: perf: ZTS: move AG and SCNG into native __thread storage, replay of #22231
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36830@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22595 Author: henderkes So I largely copied the approach of #22231, but this time for AG and SCNG, because they're small in size (256 bytes, so we don't step back into the TLS surplus issue) and I don't need to touch the JIT. EG and CG are "fine" to keep in the heap storage with the const offsets, because EG is mostly hot in dispatch and the __thread symbol is already kept loaded in the hybrid VM. For clang compile-heavy code still suffers a bit from tsrm_ls_cache base reloads, but I'm still brainstorming for that. This mostly benefits the lexer and allocations. @arnaud-lb

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