From d4cf50fd9a9930520407db6f3cd847a90f73d241 Mon Sep 17 00:00:00 2001 From: Pete Vilter <7341+vilterp@users.noreply.github.com> Date: Thu, 23 Sep 2021 16:57:13 -0400 Subject: [PATCH] mark gc_heap_snapshot_record_root as JL_NOTSAFEPOINT --- src/gc-heap-snapshot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gc-heap-snapshot.h b/src/gc-heap-snapshot.h index 6c1fb6b3ecb7d..a7158f47420b2 100644 --- a/src/gc-heap-snapshot.h +++ b/src/gc-heap-snapshot.h @@ -26,7 +26,7 @@ void _gc_heap_snapshot_record_hidden_edge(jl_value_t *from, size_t bytes) JL_NOT extern int gc_heap_snapshot_enabled; -static inline void gc_heap_snapshot_record_root(jl_value_t *root) { +static inline void gc_heap_snapshot_record_root(jl_value_t *root) JL_NOTSAFEPOINT { if (__unlikely(gc_heap_snapshot_enabled)) { _gc_heap_snapshot_record_root(root); }