Skip to content

Commit dfcf74d

Browse files
committed
Fix build
1 parent cf7521a commit dfcf74d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎ext/opcache/jit/zend_jit.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3045,18 +3045,18 @@ static void zend_jit_record_dirty_func_info(zend_func_info *func_info)
30453045
abort();
30463046
}
30473047
zend_jit_dirty_func_infos->func_info[count] = func_info;
3048-
ZEND_ATOMIC_FENCE_RELEASE();
3048+
atomic_thread_fence(memory_order_release);
30493049
zend_jit_dirty_func_infos->count = count + 1;
30503050
/* Record before writing, so the next compilation can reset what a killed process left */
3051-
ZEND_ATOMIC_FENCE_RELEASE();
3051+
atomic_thread_fence(memory_order_release);
30523052
}
30533053

30543054
static void zend_jit_reset_dirty_func_infos(void)
30553055
{
30563056
for (uint32_t i = 0; i < zend_jit_dirty_func_infos->count; i++) {
30573057
zend_jit_reset_func_info(zend_jit_dirty_func_infos->func_info[i]);
30583058
}
3059-
ZEND_ATOMIC_FENCE_RELEASE();
3059+
atomic_thread_fence(memory_order_release);
30603060
zend_jit_dirty_func_infos->count = 0;
30613061
}
30623062

‎ext/opcache/jit/zend_jit_trace.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7802,7 +7802,7 @@ static void zend_jit_stop_counter_handlers(void)
78027802
}
78037803
}
78047804
/* Set last, so the next call redoes a loop that a killed process left half done */
7805-
ZEND_ATOMIC_FENCE_RELEASE();
7805+
atomic_thread_fence(memory_order_release);
78067806
ZCSG(jit_counters_stopped) = true;
78077807
}
78087808
SHM_PROTECT();

0 commit comments

Comments
 (0)