MCPcopy Create free account
hub / github.com/bloomberg/pystack / getIsShim

Method getIsShim

src/pystack/_pystack/pyframe.cpp:44–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44bool
45FrameObject::getIsShim(
46 const std::shared_ptr<const AbstractProcessManager>& manager,
47 Structure<py_frame_v>& frame)
48{
49 if (manager->versionIsAtLeast(3, 12)) {
50 constexpr int FRAME_OWNED_BY_CSTACK = 3;
51 return frame.getField(&py_frame_v::o_owner) == FRAME_OWNED_BY_CSTACK;
52 }
53 return false; // Versions before 3.12 don't have shim frames.
54}
55
56std::unique_ptr<CodeObject>
57FrameObject::getCode(

Callers

nothing calls this directly

Calls 1

versionIsAtLeastMethod · 0.80

Tested by

no test coverage detected