Commit dfcf74dff85 for php
commit dfcf74dff8501ca9e217cbdbf4fc4ee42de0f13e
Author: Arnaud Le Blanc <arnaud.lb@gmail.com>
Date: Tue Dec 1 12:02:25 2026 +0100
Fix build
diff --git a/ext/opcache/jit/zend_jit.c b/ext/opcache/jit/zend_jit.c
index 2349d197931..5f40423cf82 100644
--- a/ext/opcache/jit/zend_jit.c
+++ b/ext/opcache/jit/zend_jit.c
@@ -3045,10 +3045,10 @@ static void zend_jit_record_dirty_func_info(zend_func_info *func_info)
abort();
}
zend_jit_dirty_func_infos->func_info[count] = func_info;
- ZEND_ATOMIC_FENCE_RELEASE();
+ atomic_thread_fence(memory_order_release);
zend_jit_dirty_func_infos->count = count + 1;
/* Record before writing, so the next compilation can reset what a killed process left */
- ZEND_ATOMIC_FENCE_RELEASE();
+ atomic_thread_fence(memory_order_release);
}
static void zend_jit_reset_dirty_func_infos(void)
@@ -3056,7 +3056,7 @@ static void zend_jit_reset_dirty_func_infos(void)
for (uint32_t i = 0; i < zend_jit_dirty_func_infos->count; i++) {
zend_jit_reset_func_info(zend_jit_dirty_func_infos->func_info[i]);
}
- ZEND_ATOMIC_FENCE_RELEASE();
+ atomic_thread_fence(memory_order_release);
zend_jit_dirty_func_infos->count = 0;
}
diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c
index 84656188dfb..a814cf84331 100644
--- a/ext/opcache/jit/zend_jit_trace.c
+++ b/ext/opcache/jit/zend_jit_trace.c
@@ -7802,7 +7802,7 @@ static void zend_jit_stop_counter_handlers(void)
}
}
/* Set last, so the next call redoes a loop that a killed process left half done */
- ZEND_ATOMIC_FENCE_RELEASE();
+ atomic_thread_fence(memory_order_release);
ZCSG(jit_counters_stopped) = true;
}
SHM_PROTECT();