MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_current_frame

Function get_current_frame

crates/vm/src/vm/thread.rs:396–398  ·  view source on GitHub ↗

Get the current thread's top frame pointer. Used by faulthandler's signal handler to start traceback walking.

()

Source from the content-addressed store, hash-verified

394/// Get the current thread's top frame pointer.
395/// Used by faulthandler's signal handler to start traceback walking.
396pub fn get_current_frame() -> *const Frame {
397 CURRENT_FRAME.with(|c| c.load(Ordering::Relaxed) as *const Frame)
398}
399
400/// Update the current thread's exception slot atomically (no locks).
401/// Called from push_exception/pop_exception/set_exception.

Callers 1

dump_live_framesFunction · 0.85

Calls 2

withMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected