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. Thanks for doing this. Looks good. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17950#issuecomment-1964298680