File tree 4 files changed +18
-0
lines changed
4 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1
1
PHP NEWS
2
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
+ ?? ??? ????, PHP 8.4.2
4
+
5
+ - Opcache:
6
+ . Fixed bug GH-16851 (JIT_G(enabled) not set correctly on other threads).
7
+ (dktapps)
8
+
3
9
21 Nov 2024, PHP 8.4.1
4
10
5
11
- BcMath:
Original file line number Diff line number Diff line change @@ -3282,6 +3282,7 @@ static zend_result accel_post_startup(void)
3282
3282
zend_accel_error_noreturn (ACCEL_LOG_FATAL , "Could not enable JIT: could not use reserved buffer!" );
3283
3283
} else {
3284
3284
zend_jit_startup (ZSMMG (reserved ), jit_size , reattached );
3285
+ zend_jit_startup_ok = true;
3285
3286
}
3286
3287
}
3287
3288
#endif
Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ zend_jit_globals jit_globals;
69
69
#define JIT_STUB_PREFIX "JIT$$"
70
70
#define TRACE_PREFIX "TRACE-"
71
71
72
+ bool zend_jit_startup_ok = false;
73
+
72
74
zend_ulong zend_jit_profile_counter = 0 ;
73
75
int zend_jit_profile_counter_rid = -1 ;
74
76
@@ -3634,6 +3636,13 @@ static void zend_jit_reset_counters(void)
3634
3636
3635
3637
void zend_jit_activate (void )
3636
3638
{
3639
+ #ifdef ZTS
3640
+ if (!zend_jit_startup_ok ) {
3641
+ JIT_G (enabled ) = 0 ;
3642
+ JIT_G (on ) = 0 ;
3643
+ return ;
3644
+ }
3645
+ #endif
3637
3646
zend_jit_profile_counter = 0 ;
3638
3647
if (JIT_G (on )) {
3639
3648
if (JIT_G (trigger ) == ZEND_JIT_ON_HOT_COUNTERS ) {
Original file line number Diff line number Diff line change @@ -100,6 +100,8 @@ typedef struct _zend_jit_trace_rec zend_jit_trace_rec;
100
100
typedef struct _zend_jit_trace_stack_frame zend_jit_trace_stack_frame ;
101
101
typedef struct _sym_node zend_sym_node ;
102
102
103
+ extern bool zend_jit_startup_ok ;
104
+
103
105
typedef struct _zend_jit_globals {
104
106
bool enabled ;
105
107
bool on ;
You can’t perform that action at this time.
0 commit comments