Repository navigation
Conversation
Documentation-and-tooling markers declaring whether code is cheap enough for application (foreground) threads or must be confined to a background thread the tracer paces itself. No application to real code yet and no checker -- just the annotation types, following the Strategy/StrategyConsumer marker convention (APMLP-1543).
…ndSafe / @BackgroundOnly DDCache is cheap (small, bounded probe count) -- safe to call from application threads. SimpleUtf8Cache and GenerationalUtf8Cache trade CPU for allocation savings that only pay off when run on a background thread, so they're confined to the background serializer thread. APMLP-1544 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
Contributor
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
Base automatically changed from
dougqh/foreground-safe-background-only-annotations
to
master
September 17, 2026 17:24
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.
What Does This Do
DDCache@ForegroundSafe— every implementation looks up a key via a small, bounded number of probes, cheap enough to call from an application thread.SimpleUtf8CacheandGenerationalUtf8Cache@BackgroundOnly— both trade CPU for allocation savings that only pay off when run on a background thread (their own Javadoc already notes they're more CPU-expensive than a directString.getBytescall); confine them to the background serializer thread.Motivation
Implements APMLP-1544. Stacked on #12471 (the annotation types themselves) — this PR only exists once that one lands.
Additional Notes
techdebtreview: no issues.perf-reviewreview: no findings (documentation-only, zero behavior change,SOURCEretention).:internal-api:compileJava/:communication:compileJavasucceed../gradlew spotlessCheckstill pending.Contributor Checklist
type:and (comp:orinst:) labels in addition to any other useful labelsclose,fix, or any linking keywords when referencing an issueJira ticket: APMLP-1544
🤖 Generated with Claude Code