-
Notifications
You must be signed in to change notification settings - Fork 319
Simplified ListWriter await logic. #8963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Conversation
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
BenchmarksStartupLoadRequest duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.50.0-SNAPSHOT~73ad88ce2b, baseline=1.50.0-SNAPSHOT~88aa5b2174
dateFormat X
axisFormat %s
section baseline
no_agent (12.406 ms) : 12294, 12519
. : milestone, 12406,
appsec (71.685 ms) : 70693, 72676
. : milestone, 71685,
code_origins (86.73 ms) : 84959, 88502
. : milestone, 86730,
iast (80.075 ms) : 78862, 81287
. : milestone, 80075,
profiling (62.462 ms) : 61601, 63324
. : milestone, 62462,
tracing (52.586 ms) : 51811, 53361
. : milestone, 52586,
section candidate
no_agent (13.418 ms) : 13304, 13532
. : milestone, 13418,
appsec (65.489 ms) : 64384, 66594
. : milestone, 65489,
code_origins (82.003 ms) : 79670, 84336
. : milestone, 82003,
iast (73.29 ms) : 71808, 74771
. : milestone, 73290,
profiling (56.165 ms) : 55257, 57073
. : milestone, 56165,
tracing (47.68 ms) : 46934, 48427
. : milestone, 47680,
Dacapo |
dougqh
reviewed
Jun 11, 2025
dougqh
approved these changes
Jun 11, 2025
bric3
reviewed
Jun 16, 2025
Comment on lines
+53
to
+60
| long deadline = System.currentTimeMillis() + unit.toMillis(timeout); | ||
|
|
||
| while (true) { | ||
| if (predicate.getAsBoolean()) { | ||
| return true; | ||
| } | ||
| latches.add(latch); | ||
|
|
||
| long now = System.currentTimeMillis(); |
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Shouldn't we use nanoTime here ? currentTimeMillis is not monotonic.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
comp: testing
Testing
tag: no release notes
Changes to exclude from release notes
type: bug
Bug report and fix
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
Refactored await logic from quite complex manipulations with list of latches with simple
wait/notifyAllapproach.Motivation
Green CI.
PekkoHttpServerInstrumentationAsyncTest failed from time to time with
TimeoutException:Additional Notes
Contributor Checklist
type:and (comp:orinst:) labels in addition to any usefull labelsclose,fixor any linking keywords when referencing an issue.Use
solvesinstead, and assign the PR milestone to the issueJira ticket: [PROJ-IDENT]