diff --git a/src/debuginfo.cpp b/src/debuginfo.cpp index 113a719590a19..02e2b9c3ac683 100644 --- a/src/debuginfo.cpp +++ b/src/debuginfo.cpp @@ -215,11 +215,6 @@ class JITObjectRegistry std::function getLoadAddress, std::function lookupWriteAddress) { - jl_ptls_t ptls = jl_current_task->ptls; - // This function modify codeinst->fptr in GC safe region. - // This should be fine since the GC won't scan this field. - int8_t gc_state = jl_gc_safe_enter(ptls); - object::section_iterator EndSection = Object.section_end(); #ifdef _CPU_ARM_ @@ -378,7 +373,6 @@ class JITObjectRegistry } }); } - jl_gc_safe_leave(ptls, gc_state); } std::map& getObjectMap() JL_NOTSAFEPOINT