GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use VMStructs stack walking mode by default by apangin · Pull Request #1539 · async-profiler/async-profiler

Conversation

@apangin

@apangin apangin commented Oct 15, 2025

Copy link
Copy Markdown
Collaborator

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
apangin and others added 2 commits October 15, 2025 21:06
@apangin
Use VMStructs stack walking mode by default
e1ba855
@apangin
Deleted bad assertions
e1e72bd
@Baraa-Hasheesh

Baraa-Hasheesh commented Oct 15, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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

apangin reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@apangin
Relax assertion for unknown frames until interpreter prologue issue i…
0043bef
…s fixed

Signed-off-by: Andrei Pangin <[email protected]>
@apangin
apangin merged commit fa5ada6 into master Oct 15, 2025
@apangin
apangin deleted the vmstructs-default branch October 15, 2025 21:00
@apangin apangin mentioned this pull request Oct 17, 2025
Fix duplicated native stacks with perf_events #1544
Merged
jbachorik pushed a commit to DataDog/async-profiler that referenced this pull request Jan 2, 2026
@apangin @jbachorik
Use VMStructs stack walking mode by default (async-profiler#1539)
17db28d
jbachorik pushed a commit to DataDog/async-profiler that referenced this pull request Jan 6, 2026
@apangin @jbachorik
Use VMStructs stack walking mode by default (async-profiler#1539)
7d123ac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@apangin @Baraa-Hasheesh
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.