File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10417,6 +10417,8 @@ extern "C" void jl_init_llvm(void)
10417
10417
// Register GDB event listener
10418
10418
#if defined(JL_DEBUG_BUILD)
10419
10419
jl_using_gdb_jitevents = true ;
10420
+ #else
10421
+ jl_using_gdb_jitevents = jl_running_under_rr (0 );
10420
10422
#endif
10421
10423
const char *jit_gdb = getenv (" ENABLE_GDBLISTENER" );
10422
10424
if (jit_gdb) {
Original file line number Diff line number Diff line change 183
183
XX(jl_gc_sync_total_bytes) \
184
184
XX(jl_gc_total_hrtime) \
185
185
XX(jl_gdblookup) \
186
+ XX(jl_running_under_rr) \
186
187
XX(jl_generating_output) \
187
188
XX(jl_declare_const_gf) \
188
189
XX(jl_gensym) \
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ void JL_UV_LOCK(void);
192
192
extern _Atomic (unsigned ) _threadedregion ;
193
193
extern _Atomic (uint16_t ) io_loop_tid ;
194
194
195
- int jl_running_under_rr (int recheck ) JL_NOTSAFEPOINT ;
195
+ JL_DLLEXPORT int jl_running_under_rr (int recheck ) JL_NOTSAFEPOINT ;
196
196
197
197
//--------------------------------------------------
198
198
// timers
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ void jl_init_thread_scheduler(jl_ptls_t ptls) JL_NOTSAFEPOINT
137
137
// since we are being initialized from foreign code, we could not necessarily have expected or predicted that to happen
138
138
}
139
139
140
- int jl_running_under_rr (int recheck )
140
+ JL_DLLEXPORT int jl_running_under_rr (int recheck )
141
141
{
142
142
#ifdef _OS_LINUX_
143
143
#define RR_CALL_BASE 1000
You can’t perform that action at this time.
0 commit comments