php-src/ext/opcache
Niels Dossche ca1b7312d2
Fix module shutdown crash during ZTS JIT shutdown
Commit a21195650e fixed a leak by adding a TSRM destructor for the
JIT globals in ZTS mode. In case the main thread shuts down the TSRM, it
will call all the destructors. The JIT globals destructor will be
invoked, but will always access the main thread globals using JIT_G.
This means that instead of freeing the JIT globals in the different
threads, the one in the main thread is freed repeatedly over and over,
crashing PHP. Fix it by always passing the pointer instead of relying on
JIT_G.

Closes GH-10835.

(cherry picked from commit b3e28e2290)
2023-03-13 23:26:06 +03:00
..
jit Fix module shutdown crash during ZTS JIT shutdown 2023-03-13 23:26:06 +03:00
tests Merge branch 'PHP-8.1' into PHP-8.2 2023-02-21 09:26:10 +03:00
config.m4
config.w32
CREDITS
opcache.stub.php
opcache_arginfo.h
shared_alloc_mmap.c GH-9370: Fix opcache jit protection bits. 2022-08-24 16:11:35 +01:00
shared_alloc_posix.c
shared_alloc_shm.c
shared_alloc_win32.c
zend_accelerator_blacklist.c Fix GCC 9.4 uninitialized variable warning 2022-08-19 12:46:55 +01:00
zend_accelerator_blacklist.h
zend_accelerator_debug.c
zend_accelerator_debug.h
zend_accelerator_hash.c
zend_accelerator_hash.h ext/opcache: C++ compatibility 2022-03-20 20:38:23 +01:00
zend_accelerator_module.c Merge branch 'PHP-8.1' into PHP-8.2 2023-01-27 19:37:01 +01:00
zend_accelerator_module.h
zend_accelerator_util_funcs.c Fix class link observer with file_cache_only=1 2022-09-16 14:15:05 +02:00
zend_accelerator_util_funcs.h ext/opcache: C++ compatibility 2022-03-20 20:38:23 +01:00
zend_file_cache.c Log the cause of error when opcache cannot write to file cache (#9258) 2022-09-03 11:23:43 +02:00
zend_file_cache.h ext/opcache: merge redundant code and "bool" refactoring (#8237) 2022-03-24 15:03:53 +01:00
zend_persist.c Fix observing inherited internal functions 2022-11-02 15:33:04 +01:00
zend_persist.h
zend_persist_calc.c Add support for Disjoint Normal Form (DNF) types (#8725) 2022-07-08 11:30:23 +01:00
zend_shared_alloc.c Fix high opcache.interned_strings_buffer causing shm corruption (#9260) 2022-09-03 11:23:10 +02:00
zend_shared_alloc.h Remove zend_shared_alloc_pages declaration that was never implemented (#8852) 2022-06-23 19:08:44 +02:00
ZendAccelerator.c Fix Zend/tests/type_declarations/variance/class_order_autoload1.phpt 2023-03-02 02:05:43 +03:00
ZendAccelerator.h Don't enforce 64 hit counter on Windows 2022-08-22 17:49:30 +02:00