GeezerVison is showing github.com — Cleanup all AGCT recovery tricks and remove `safemode` option · Issue #1675 · async-profiler/async-profiler
Cleanup all AGCT recovery tricks and remove safemode option #1675
Description
Describe the feature
There is a large chunk of intricate code in getJavaTraceAsync to recover from cases when AsyncGetCallTrace fails. AGCT often returns one of ticks_unknown_Java, ticks_not_walkable_Java, ticks_unknown_not_Java, or ticks_not_walkable_not_Java error codes. When async-profiler encounters these errors, it attempts to adjust SP/FP or otherwise "fix" stack layout and retry AGCT call. Such adjustments are not reliable, they caused several issues in the past. safemode option was introduced to selectively disable recovery techniques for troubleshooting purposes.
After switching to vm stack walker by default, maintaining this fragile code is no longer reasonable.
Use Case
AsyncGetCallTrace remains only for Zing which does not have VMStructs.
However, AGCT recovery tricks are not used on Zing anyway, so it's safe to remove them.
Proposed Solution
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
Activity
added a commit that references this issue
on Feb 7, 2026#1675: Cleanup AGCT recovery tricks and remove safemode option
added a commit that references this issue
on Feb 8, 2026#1675: Cleanup AGCT recovery tricks and remove `safemode` option
Metadata
Metadata
Development
No branches or pull requestsIssue actions