MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / fromEntryFrame

Method fromEntryFrame

src/vmStructs.h:324–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322
323 public:
324 static JavaFrameAnchor* fromEntryFrame(uintptr_t fp) {
325 const char* call_wrapper = *(const char**)(fp + _entry_frame_call_wrapper_offset);
326 if (!goodPtr(call_wrapper) || (uintptr_t)call_wrapper - fp > MAX_CALL_WRAPPER_DISTANCE) {
327 return NULL;
328 }
329 return (JavaFrameAnchor*)(call_wrapper + _call_wrapper_anchor_offset);
330 }
331
332 uintptr_t lastJavaSP() {
333 return *(uintptr_t*) at(_anchor_sp_offset);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected