Repository navigation
Conversation
Pull request dashboard statusWaiting on the author · refreshed 2026-11-22 10:13 UTC Investigate required status check failures. Status above doesn't look right?
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9049 +/- ##
============================================
+ Coverage 90.45% 90.49% +0.03%
- Complexity 11182 11211 +29
============================================
Files 1032 1032
Lines 30508 30559 +51
Branches 3992 4012 +20
============================================
+ Hits 27596 27653 +57
- Misses 1935 1936 +1
+ Partials 977 970 -7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
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.
Fixes #7729.
In
REUSABLE_DATAmode, the two alternating maps can hold separate accumulators for the same unbound DELTA series. After eight collections of an explicit bucket histogram with 1,024 series,GC.class_histogramfound 2,048 accumulators and 2,048 handle wrappers onmain. This change retains 1,024 of each.The maps keep their entries and share the reset accumulator. If a recording for the same series overlaps collection, the incoming interval gets its own accumulator and both maps keep that accumulator after the handoff. Bound handles continue to rotate, and idle series are evicted when the cardinality limit is reached.
Tests
./gradlew :sdk:metrics:check :sdk:all:jmhJarpassed in WSL 2. The metrics module had 902 passing tests and one skipped test. Coverage includes reuse across empty intervals, overlapping recording and collection, binding a previously recorded series, and cardinality eviction.JMH
Baseline
f0549eb, patch0e35619. JMH 1.37, JDK 25.0.5.1, two forks, three 1-second warmup iterations and four 1-second measurement iterations per fork. Collection workloads used one thread. The last two rows use the existingMetricRecordBenchmarkwithout collection. Errors are JMH 99.9% confidence intervals. For collection, one op includes all records and one collect.The initial throughput difference at 128 series × 32 records did not recur when alternating revisions. The run order was main at 5,234 ± 308, patch at 5,539 ± 821, patch at 5,941 ± 243, and main at 5,669 ± 288 ops/s. Four-thread recording had a lower mean on the patch and overlapping confidence intervals. Overlapping collection and recording was covered by functional tests.