[php-src] master: Merge branch 'PHP-8.6'
| From: | Arnaud Le Blanc | Date: | Fri, 16 Oct 2026 17:23:02 +0000 |
| Subject: | [php-src] master: Merge branch 'PHP-8.6' | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-142360@lists.php.net to get a copy of this message | ||
Author: Arnaud Le Blanc (arnaud-lb)
Date: 2026-10-16T19:22:48+02:00
Commit: https://github.com/php/php-src/commit/0793cf5f5084bec11388fdbc4bb5eeda0b758eef
Raw diff: https://github.com/php/php-src/commit/0793cf5f5084bec11388fdbc4bb5eeda0b758eef.diff
Merge branch 'PHP-8.6'
* PHP-8.6:
JIT: Fix TLS access with SHM reattachment (#24355)
Changed paths:
M ext/opcache/jit/zend_jit_ir.c
Diff:
diff --git a/ext/opcache/jit/zend_jit_ir.c b/ext/opcache/jit/zend_jit_ir.c
index 75c39146e595..bfa5297aa6db 100644
--- a/ext/opcache/jit/zend_jit_ir.c
+++ b/ext/opcache/jit/zend_jit_ir.c
@@ -3378,6 +3378,10 @@ static void zend_jit_setup(bool reattached)
#endif
#ifdef ZTS
+# ifdef ZEND_OPCACHE_SHM_REATTACHMENT
+ /* Different processes may load TLS variables in a different order, so we
+ * can not rely on offsets. We will fallback to runtime resolution. */
+# else
zend_result result = zend_jit_resolve_tsrm_ls_cache_offsets(
&tsrm_ls_cache_tcb_offset,
&tsrm_tls_index,
@@ -3387,6 +3391,7 @@ static void zend_jit_setup(bool reattached)
zend_accel_error(ACCEL_LOG_INFO,
"Could not get _tsrm_ls_cache offsets, will fallback to runtime resolution");
}
+# endif
#endif
#if !defined(ZEND_WIN32) && !defined(IR_TARGET_AARCH64)