Skip to content

Commit e4090c2

Browse files
committed
Mark is_spin_mutex as not a safepoint
1 parent 112ca17 commit e4090c2

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
@@ -768,7 +768,7 @@ JL_DLLEXPORT void jl_exit_threaded_region(void)
768768
}
769769
}
770770

771-
static int is_spin_mutex(void *lock)
771+
static int is_spin_mutex(void *lock) JL_NOTSAFEPOINT
772772
{
773773
return (jl_atomic_load_relaxed(&((jl_spin_mutex_t *)lock)->count) & SLEEP_LOCK_BIT) == 0;
774774
}

0 commit comments

Comments
 (0)