1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/Zend/Optimizer
Arnaud Le Blanc 359ad80c4a Fix race condition in zend_runtime_jit(), zend_jit_hot_func()
zend_runtime_jit() prevents concurrent compilation with
zend_shared_alloc_lock(), but this doesn't prevent blocked threads from
trying to compile the function again after they acquire the lock.

In the case of GH-19889, one of the function entries is compiled with
zend_jit_handler(), which fails when the op handler has already been replaced by
a JIT'ed handler.

Fix by marking compiled functions with a new flag ZEND_FUNC_JITED, and
skipping compilation of marked functions. The same fix is applied to
zend_jit_hot_func().

Fixes GH-19889
Closes GH-19971
2025-10-07 10:48:44 +02:00
..
2025-03-18 13:42:53 +01:00
2024-10-14 13:25:31 +02:00
2025-09-11 19:36:29 +02:00
2023-01-16 12:25:59 +01:00
2025-03-21 13:57:16 +01:00
2023-01-16 12:25:59 +01:00
2023-01-16 12:25:59 +01:00
2025-08-11 23:05:50 +02:00