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

Function isFixedSizeFrame

src/stackFrame_aarch64.cpp:82–96  ·  view source on GitHub ↗

Check if this is a well-known leaf stub with a constant size frame

Source from the content-addressed store, hash-verified

80
81// Check if this is a well-known leaf stub with a constant size frame
82static inline bool isFixedSizeFrame(const char* name) {
83 // Dispatch by the first character to optimize lookup
84 switch (name[0]) {
85 case 'i':
86 return startsWith(name, "indexof_linear_");
87 case 'm':
88 return startsWith(name, "md5_implCompress");
89 case 's':
90 return startsWith(name, "sha256_implCompress")
91 || startsWith(name, "string_indexof_linear_")
92 || startsWith(name, "slow_subtype_check");
93 default:
94 return false;
95 }
96}
97
98// Check if this is a well-known leaf stub that does not change stack pointer
99static inline bool isZeroSizeFrame(const char* name) {

Callers 1

unwindStubMethod · 0.85

Calls 1

startsWithFunction · 0.85

Tested by

no test coverage detected