From 20605728869bae91f76b0bc0cadfb010c7fbfe16 Mon Sep 17 00:00:00 2001 From: Prem Chintalapudi Date: Wed, 13 Apr 2022 11:38:19 -0400 Subject: [PATCH] Remove PTLS load inside JIT --- src/debuginfo.cpp | 6 ------ 1 file changed, 6 deletions(-) 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