Skip to content

Commit 24f7829

Browse files
committed
Fix the conditional macro name [ci skip]
`RUBY_VM_CRITICAL_SECTION` is not used anywhere.
1 parent 4031beb commit 24f7829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ static inline int
14741474
blocking_region_begin(rb_thread_t *th, struct rb_blocking_region_buffer *region,
14751475
rb_unblock_function_t *ubf, void *arg, int fail_if_interrupted)
14761476
{
1477-
#ifdef RUBY_VM_CRITICAL_SECTION
1477+
#ifdef RUBY_ASSERT_CRITICAL_SECTION
14781478
VM_ASSERT(ruby_assert_critical_section_entered == 0);
14791479
#endif
14801480
VM_ASSERT(th == GET_THREAD());

0 commit comments

Comments
 (0)