mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8332154: Memory leak in SynchronousQueue
Reviewed-by: alanb
This commit is contained in:
parent
7652f9811b
commit
b78613b681
4 changed files with 98 additions and 1 deletions
|
@ -194,6 +194,8 @@ public class SynchronousQueue<E> extends AbstractQueue<E>
|
|||
if ((m = s.await(e, ns, this, // spin if (nearly) empty
|
||||
p == null || p.waiter == null)) == e)
|
||||
unspliceLifo(s); // cancelled
|
||||
else if (m != null)
|
||||
s.selfLinkItem();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue