Skip to content

Commit 04f1657

Browse files
committed
dead code
1 parent c650b51 commit 04f1657

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

Modules/_remote_debugging/threads.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -314,19 +314,6 @@ unwind_stack_for_thread(
314314

315315
long tid = GET_MEMBER(long, ts, unwinder->debug_offsets.thread_state.native_thread_id);
316316

317-
// Read GC collecting state from the interpreter (before any skip checks)
318-
uintptr_t interp_addr = GET_MEMBER(uintptr_t, ts, unwinder->debug_offsets.thread_state.interp);
319-
320-
// Read the GC runtime state from the interpreter state
321-
uintptr_t gc_addr = interp_addr + unwinder->debug_offsets.interpreter_state.gc;
322-
char gc_state[SIZEOF_GC_RUNTIME_STATE];
323-
if (_Py_RemoteDebug_PagedReadRemoteMemory(&unwinder->handle, gc_addr, unwinder->debug_offsets.gc.size, gc_state) < 0) {
324-
set_exception_cause(unwinder, PyExc_RuntimeError, "Failed to read GC state");
325-
goto error;
326-
}
327-
STATS_INC(unwinder, memory_reads);
328-
STATS_ADD(unwinder, memory_bytes_read, unwinder->debug_offsets.gc.size);
329-
330317
// Calculate thread status using flags (always)
331318
int status_flags = 0;
332319

0 commit comments

Comments
 (0)