[php-src] PR #24355: JIT: Fix TLS access with SHM reattachment
| From: | arnaud-lb | Date: | Thu, 15 Oct 2026 15:49:56 +0000 |
| Subject: | [php-src] PR #24355: JIT: Fix TLS access with SHM reattachment | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-39472@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/24355
Author: arnaud-lb
Should fix GH-24185.
Different processes may load modules in a different order, so TLS variables may have different
offsets. This is an issue when JIT hard-codes those offsets into generated code.
Fix by using not resolving the TLS offsets when ZEND_OPCACHE_SHM_REATTACHMENT is defined, so that
generated code fallback to runtime resolution.