Skip to content

Eliminate jmethod ID dependency for hotspot and cstack=vm - #867

Draft
zhengyu123 wants to merge 10 commits into
mainfrom
zgu/jmethod_id
Draft

zhengyu123 wants to merge 10 commits into
mainfrom
zgu/jmethod_id

Conversation

@zhengyu123

Copy link
Copy Markdown
Contributor

What does this PR do?:

Motivation:

Additional Notes:

How to test the change?:

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a security review (run the dd:platform-security-review
    skill, or file a request via the PSEC review form).
    bewaire also runs automatically on every PR.
  • This PR doesn't touch any of that.
  • JIRA: [JIRA-XXXX]

Unsure? Have a question? Request a review!

zhengyu123 and others added 6 commits October 9, 2026 14:54
…rage tasks

- Package the `coverage` native library jar and consumable configuration
  when -PenableCoverage is set, so :ddprof-test:testCoverage can resolve it
  (still excluded from publishing).
- gtestCoverageReport now also depends on :ddprof-test:testCoverage and
  merges the gtest and Java-test .gcda data into one gcovr report; negative
  hit counts are warned about instead of failing the report.
- Build the coverage config with -fprofile-update=atomic so concurrent
  profiler threads don't corrupt gcov counters, and link it on Linux with
  -Wl,-z,nodelete like the debug config.
- Clear stale .gcda files before each gtestCoverage_<test> and testCoverage
  run, and derive the gcov tool from the configured compiler instead of
  the gcov on PATH.
- Enable JaCoCo on testDebug/testSlowDebug only when jacocoTestReport is
  requested (drops -PdisableJacoco). When a coverage report is requested,
  test failures are deferred rather than ignored: the report is generated,
  then the build fails listing the failed test tasks.
- Add NativeBuildConfig so debug-only tests also run against the coverage
  build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dd-octo-sts

dd-octo-sts Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

CI Test Results

Run: #38913636335 | Commit: d584662 | Duration: 3h 0m 25s (longest job)

❌ 2 of 32 test jobs failed

Status Overview

JDK glibc-aarch64/debug glibc-amd64/debug musl-aarch64/debug musl-amd64/debug
8 - ❌ - -
8-ibm - 🚫 - -
8-j9 ✅ ✅ - -
8-librca - - ✅ ✅
8-orcl - ❌ - -
11 - ✅ - -
11-j9 ✅ ✅ - -
11-librca - - ✅ ✅
17 ✅ ✅ - -
17-graal ✅ ✅ - -
17-j9 ✅ ✅ - -
17-librca - - ✅ ✅
21 ✅ ✅ - -
21-graal ✅ ✅ - -
21-librca - - ✅ ✅
25 ✅ ✅ - -
25-graal ✅ ✅ - -
25-librca - - ✅ ✅

Legend: ✅ passed | ❌ failed | ⚪ skipped | 🚫 cancelled

❌ Failing tests

Test Cells Message
ContextClassLoaderUnloadTest.cstack_vm glibc-8-debug-amd64, glibc-8-orcl-debug-amd64 org.opentest4j.AssertionFailedError: Worker stack traces contain unknown frames, e.g.
ContextClassLoaderUnloadTest.cstack_vmx glibc-8-debug-amd64, glibc-8-orcl-debug-amd64 org.opentest4j.AssertionFailedError: Worker stack traces contain unknown frames, e.g.

Retried 2 of 31 cells.

Failed Jobs

Summary: Total: 32 | Passed: 29 | Failed: 2 | Cancelled: 1


Updated: 2026-10-16 17:13:29 UTC

@dd-octo-sts

dd-octo-sts Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ All 40 integration tests passed

📊 Dashboard · 👷 Pipeline · 📦 689ae44d

@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Pipelines

✨ Unblock PR with BitsAI

❌ Errors

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 3 Pipeline jobs failed

CI Run | test-matrix / test-linux-glibc-amd64 (8, debug, regular) — 🔧 Needs a code fix, caused by this PR

View more details · View in GitHub Actions

CI Run | test-matrix / test-linux-glibc-amd64 (8-orcl, debug, regular) — 🔧 Needs a code fix, caused by this PR

View more details · View in GitHub Actions

DataDog/java-profiler | functional:x64-el7-jdk8 — 🔧 Needs a code fix, caused by this PR

View more details · View in GitLab

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 689ae44 | Docs | View more details | Give us feedback!

This branch has not been deployed

No deployments
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.

1 participant