Skip to content

[PROF-13913] Ensure opentelemetry-ebpf-profiler support for JDK 26#55

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 10 commits into
DataDog:datadogfrom
wehzzz:mlevesque/PROF-13913-fix-jdk-26-support
Mar 16, 2026
Merged

[PROF-13913] Ensure opentelemetry-ebpf-profiler support for JDK 26#55
gh-worker-dd-mergequeue-cf854d[bot] merged 10 commits into
DataDog:datadogfrom
wehzzz:mlevesque/PROF-13913-fix-jdk-26-support

Conversation

@wehzzz
Copy link
Copy Markdown

@wehzzz wehzzz commented Mar 12, 2026

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: Added ImmutableDataRefCountOff field (JDK 26+), added _deopt_handler_entry_offset as an alias for DeoptimizeOffset.
  • instance.go: When _immutable_data_ref_count_offset is 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_offset field, renumbered PcDesc flags). 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

@wehzzz wehzzz self-assigned this Mar 12, 2026
@wehzzz wehzzz requested a review from a team March 12, 2026 09:26
@wehzzz
Copy link
Copy Markdown
Author

wehzzz commented Mar 16, 2026

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 Bot commented Mar 16, 2026

View all feedbacks in Devflow UI.

2026-03-16 14:36:21 UTC ℹ️ Start processing command /merge


2026-03-16 14:36:27 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in datadog is approximately 37s (p90).


2026-03-16 14:38:09 UTC ℹ️ MergeQueue: This merge request was merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants