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

Function defaultSenderSP

src/stackWalker.cpp:34–40  ·  view source on GitHub ↗

AArch64: on Linux, frame link is stored at the top of the frame, while on macOS, frame link is at the bottom.

Source from the content-addressed store, hash-verified

32// AArch64: on Linux, frame link is stored at the top of the frame,
33// while on macOS, frame link is at the bottom.
34static inline uintptr_t defaultSenderSP(uintptr_t sp, uintptr_t fp) {
35#ifdef __APPLE__
36 return sp + 2 * sizeof(void*);
37#else
38 return fp;
39#endif
40}
41
42static inline void fillFrame(ASGCT_CallFrame& frame, ASGCT_CallFrameType type, const char* name) {
43 frame.bci = type;

Callers 2

walkDwarfMethod · 0.85
walkVMMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected