1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix TLS access in JIT with Musl (#13927)

ABI specifies that each DTV element is 8 bytes in size on x86-64. The factor 16
was defined in 71cccc0bcc, but it's probably
a merge error of 94ba883e19, which used the right
value.
This commit is contained in:
Arnaud Le Blanc
2024-04-11 13:34:54 +02:00
committed by GitHub
parent 47f0a06d34
commit 91b84571f0

View File

@@ -3255,7 +3255,7 @@ static void zend_jit_setup(void)
"leaq _tsrm_ls_cache@tlsgd(%%rip), %0\n"
: "=a" (ti));
tsrm_tls_offset = ti[1];
tsrm_tls_index = ti[0] * 16;
tsrm_tls_index = ti[0] * 8;
#else
size_t *ti;