[PROF-13913] Ensure opentelemetry-ebpf-profiler support for JDK 26#55
Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 10 commits intoMar 16, 2026
Conversation
Gandem
approved these changes
Mar 12, 2026
Author
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
94f0c23
into
DataDog:datadog
31 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Upstream PR: open-telemetry#1240
What does this PR do?
Adds JDK 26 support to the HotSpot JVM interpreter in the eBPF profiler. It handles breaking changes in the JDK 26 nmethod VM struct by adding new field mappings and adjusting immutable data size calculation to account for the new ref count trailer.
Key changes in interpreter/hotspot/:
data.go: AddedImmutableDataRefCountOfffield (JDK 26+), added_deopt_handler_entry_offsetas an alias forDeoptimizeOffset.instance.go: When_immutable_data_ref_count_offsetis present, use it to cap the immutable data region size.hotspot.go: Documented JDK 26 changes in the version history comment block.Motivation
JDK 26 introduces several changes in the HotSpot VM internals (renamed/removed fields in
nmethod, new_immutable_data_ref_count_offsetfield, renumberedPcDescflags). Without these fixes, the eBPF profiler cannot correctly unwind Java stacks on JDK 26.The objective is to identify the breaking changes introduced by this new JDK version and ensure they are properly handled.
Describe how you validated your changes
Additional Notes