On Wed, 21 Feb 2024 15:01:15 GMT, Viktor Klang <vkl...@openjdk.org> wrote:
> More aggressively breaking chains in order to prevent nodes promoted to older > generations standing in the way for collecting younger nodes. I decided that > it was most efficient to add this logic to the else-branch of updating the > firstWaiter and lastWaiter. > > There's a race with unlinkCancelledWaiters() but according to @DougLea it > should be a benign one. > > There's a performance impact of this, but as it is a plain write, and one to > null at that, it should be acceptable. This pull request has now been integrated. Changeset: 60cbf292 Author: Viktor Klang <vkl...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/60cbf2925024b1c2253256688ae41741fff0a860 Stats: 10 lines in 2 files changed: 10 ins; 0 del; 0 mod 8325754: Dead AbstractQueuedSynchronizer$ConditionNodes survive minor garbage collections Reviewed-by: alanb ------------- PR: https://git.openjdk.org/jdk/pull/17950