8386085: Livelock in AbstractQueuedSyncronizer.cleanQueue() when multiple threads do tryAcquire() with a short timeout and no permits available#4529
Conversation
…iple threads do tryAcquire() with a short timeout and no permits available Reviewed-by: dl, alanb
|
👋 Welcome back kshiroko! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
This backport pull request has now been updated with issue from the original commit. |
|
|
Webrevs
|
phohensee
left a comment
There was a problem hiding this comment.
Not an expert on this, but doesn't AutoClosable imply you need a finally block on your try?
With |
Please note that it cannot be a clean fix, because the tests were fixed for JDK 17 where
ExecutorServicedoes not yet implementAutoCloseable. The additional fix (comparing to the clean one) is made as a separate commitTesting done:
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/4529/head:pull/4529$ git checkout pull/4529Update a local copy of the PR:
$ git checkout pull/4529$ git pull https://git.openjdk.org/jdk17u-dev.git pull/4529/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4529View PR using the GUI difftool:
$ git pr show -t 4529Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/4529.diff
Using Webrev
Link to Webrev Comment