Skip to content

Commit e512d1a

Browse files
committed
Mark is_spin_mutex as not a safepoint
1 parent bcc352d commit e512d1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/threading.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ JL_DLLEXPORT void jl_exit_threaded_region(void)
738738
}
739739
}
740740

741-
static int is_spin_mutex(void *lock)
741+
static int is_spin_mutex(void *lock) JL_NOTSAFEPOINT
742742
{
743743
return (jl_atomic_load_relaxed(&((jl_spin_mutex_t *)lock)->count) & SLEEP_LOCK_BIT) == 0;
744744
}

0 commit comments

Comments
 (0)