# | Line 1173 | Line 1173 | public class SynchronousQueue<E> extends | |
---|---|---|
1173 | transferer = new TransferStack<E>(); | |
1174 | } | |
1175 | ||
1176 | + | static { |
1177 | + | // Reduce the risk of rare disastrous classloading in first call to |
1178 | + | // LockSupport.park: https://bugs.openjdk.java.net/browse/JDK-8074773 |
1179 | + | Class<?> ensureLoaded = LockSupport.class; |
1180 | + | } |
1181 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |