KEMBAR78
Use VMStructs stack walking mode by default by apangin · Pull Request #1539 · async-profiler/async-profiler · GitHub
Skip to content

Conversation

apangin
Copy link
Member

@apangin apangin commented Oct 15, 2025

Description

Make cstack=vm the default stack walking mode on HotSpot JVM.

Related issues

#1533

Motivation and context

We've been using cstack=vm in production for a while and it proved stable.
Recent changes (e.g. #1449, #1517, #1537) significantly improved quality of VMStructs stack traces, which is now superior to AsyncGetCallTrace. There are only advantages in using VMStructs, so it is a good time to change the defaults, thus making another step towards AsyncGetCallTrace deprecation.

How has this been tested?

All existing tests pass with no changes, except for recovery tests that check soon-to-be-deprecated safemode option.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Baraa-Hasheesh
Copy link
Contributor

Baraa-Hasheesh commented Oct 15, 2025

This looks good to me

The only comment I have is out of scope being it would properly be a good idea to prefer dwarf to FP when it's available on pure native apps

…s fixed

Signed-off-by: Andrei Pangin <1749416+apangin@users.noreply.github.com>
@apangin apangin merged commit fa5ada6 into master Oct 15, 2025
53 checks passed
@apangin apangin deleted the vmstructs-default branch October 15, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants