Skip to content

Harden runtime detach and profiler lifecycle#908

Merged
jbachorik merged 7 commits into
developfrom
issue-888-runtime-hardening
Jul 17, 2026
Merged

Harden runtime detach and profiler lifecycle#908
jbachorik merged 7 commits into
developfrom
issue-888-runtime-hardening

Conversation

@jbachorik

@jbachorik jbachorik commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Closes #888

Summary

  • Make speculative queues and terminal shutdown safe under detach races.
  • Release probe-owned MBeans with token-checked cleanup, and make terminal runtime exit deliver one ordered marker and Exit command.
  • Surface isolated event/error handler failures without corrupting runtime state.
  • Harden profiler snapshot/deferred-record coordination and prune cleared recorder references.
  • Normalize probe class-definition failures across runtime tiers.

Verification

  • :btrace-runtime:test
  • :btrace-agent:test
  • :btrace-dist:build
  • :btrace-compiler:test --tests io.btrace.compiler.BTraceDslVerifierTest
  • Focused Issue888RuntimeHardeningIntegrationTest
  • Full -Pintegration :integration-tests:test
  • Scoped Spotless checks and git diff --check

This change is Reviewable

Comment thread integration-tests/src/test/btrace/Issue888RuntimeHardeningTest.java Fixed
@jbachorik
jbachorik requested a review from Copilot July 17, 2026 22:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@jbachorik
jbachorik marked this pull request as ready for review July 17, 2026 22:40
@jbachorik
jbachorik merged commit 2c4f9e2 into develop Jul 17, 2026
17 checks passed
@jbachorik
jbachorik deleted the issue-888-runtime-hardening branch July 17, 2026 22:41
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.

[3.0] btrace-runtime pre-release hardening (MBean leak, detach NPE, swallowed handlers, profiler spins)

3 participants