Skip to content

Commit 425e468

Browse files
ivoanjokimuraw
andauthored
[Backport #20633] Fix the condition for atomic_signal_fence (ruby#11166)
[Bug #20633] Fix the condition for `atomic_signal_fence` `AC_CHECK_DECLS` defines `HAVE_DECL_SYMBOL` to 1 if declared, 0 otherwise, not undefined. Co-authored-by: kimuraw (Wataru Kimura) <[email protected]>
1 parent 3427a16 commit 425e468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm_insnhelper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ vm_push_frame(rb_execution_context_t *ec,
396396
This is a no-op in all cases we've looked at (https://godbolt.org/z/3oxd1446K), but should guarantee it for all
397397
future/untested compilers/platforms. */
398398

399-
#ifdef HAVE_DECL_ATOMIC_SIGNAL_FENCE
399+
#if defined HAVE_DECL_ATOMIC_SIGNAL_FENCE && HAVE_DECL_ATOMIC_SIGNAL_FENCE
400400
atomic_signal_fence(memory_order_seq_cst);
401401
#endif
402402

0 commit comments

Comments
 (0)