@@ -14,16 +14,16 @@ extern "C" {
14
14
// Marking callbacks for global roots and tasks, respectively. These,
15
15
// along with custom mark functions must not alter the GC state except
16
16
// through calling jl_gc_mark_queue_obj() and jl_gc_mark_queue_objarray().
17
- typedef void (* jl_gc_cb_root_scanner_t )(int full );
18
- typedef void (* jl_gc_cb_task_scanner_t )(jl_task_t * task , int full );
17
+ typedef void (* jl_gc_cb_root_scanner_t )(int full ) JL_NOTSAFEPOINT ;
18
+ typedef void (* jl_gc_cb_task_scanner_t )(jl_task_t * task , int full ) JL_NOTSAFEPOINT ;
19
19
20
20
// Callbacks that are invoked before and after a collection.
21
- typedef void (* jl_gc_cb_pre_gc_t )(int full );
22
- typedef void (* jl_gc_cb_post_gc_t )(int full );
21
+ typedef void (* jl_gc_cb_pre_gc_t )(int full ) JL_NOTSAFEPOINT ;
22
+ typedef void (* jl_gc_cb_post_gc_t )(int full ) JL_NOTSAFEPOINT ;
23
23
24
24
// Callbacks to track external object allocations.
25
- typedef void (* jl_gc_cb_notify_external_alloc_t )(void * addr , size_t size );
26
- typedef void (* jl_gc_cb_notify_external_free_t )(void * addr );
25
+ typedef void (* jl_gc_cb_notify_external_alloc_t )(void * addr , size_t size ) JL_NOTSAFEPOINT ;
26
+ typedef void (* jl_gc_cb_notify_external_free_t )(void * addr ) JL_NOTSAFEPOINT ;
27
27
28
28
JL_DLLEXPORT void jl_gc_set_cb_root_scanner (jl_gc_cb_root_scanner_t cb , int enable );
29
29
JL_DLLEXPORT void jl_gc_set_cb_task_scanner (jl_gc_cb_task_scanner_t cb , int enable );
0 commit comments