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 — Unwind AArch64 generated stubs on JDK 26+ by apangin · Pull Request #1684 · async-profiler/async-profiler

Conversation

@apangin

@apangin apangin commented Feb 10, 2026

Copy link
Copy Markdown
Collaborator

Description

  1. Strip Stub Generator prefix introduced with JDK-8336658.
  2. Change strcmp to strncmp to account for stub suffices added in JDK 26 and JDK 27.
  3. Remove dead code related to AsyncGetCallTrace.

Related issues

RecoveryTests.intrinsics fails on JDK 26.

Motivation and context

Fix unwinding of runtime stubs on JDK 26 / ARM64.

How has this been tested?

Integration tests pass on JDK 26 and 27-ea.
Manually profiled spring-petclinic and searched for stubs.


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
Unwind AArch64 generated stubs on JDK 26+
a75fac1
@Baraa-Hasheesh

Baraa-Hasheesh commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

Strip Stub Generator prefix introduced with JDK-8336658.
Change strcmp to strncmp to account for stub suffices added in JDK 26 and JDK 27.

Since we're already removing the "Stub Generator" prefix from the name before we add it to the _runtime_stubs wouldn't it make sense to also remove the "_stub" suffix before we add it?

With the current change base64_encodeBlock stub will be reported in the stack as base64_encodeBlock_stub which doesn't look nice

All reactions

Sorry, something went wrong.

Uh oh!

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

@apangin

apangin commented Feb 10, 2026

Copy link
Copy Markdown
Collaborator Author

@Baraa-Hasheesh

wouldn't it make sense to also remove the "_stub" suffix

This was my first intention, but things appeared to be more complicated.
JDK 27 changed stub names once again, unifying them across all blob types.
E.g. generic_arraycopy is now generic_arraycopy_stub (stub gen),
and C2 Runtime new_instance became new_instance_blob (C2 runtime).

You may ask what if we remove everything in parentheses, but that's not ideal too, as it won't be possible to distinguish new_instance_blob (C1 runtime) from new_instance_blob (C2 runtime). So I decided to leave the original JDK names - after all, that's what JDK prints in its own stack traces.

Baraa-Hasheesh 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
apangin merged commit dc69cf4 into master Feb 11, 2026
78 of 79 checks passed

Uh oh!

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

@apangin
apangin deleted the jdk26-stubs branch February 11, 2026 16:03
@github-actions github-actions Bot mentioned this pull request Feb 12, 2026
Upstream async-profiler changes detected (2026-02-12) DataDog/java-profiler#366
Closed
@rschmukler rschmukler mentioned this pull request Aug 5, 2026
Update vendor binaries to 4.5 clojure-goes-fast/clj-async-profiler#47
Merged
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.