8202373: Forcing eager initialization of CHM$ReservationNode avoids deoptimization

Reviewed-by: martin, psandoz, dholmes, redestad
This commit is contained in:
Doug Lea 2018-05-01 06:18:48 -07:00
parent 3c202e01d8
commit a4c5934169

View File

@ -6389,5 +6389,8 @@ public class ConcurrentHashMap<K,V> extends AbstractMap<K,V>
// Reduce the risk of rare disastrous classloading in first call to
// LockSupport.park: https://bugs.openjdk.java.net/browse/JDK-8074773
Class<?> ensureLoaded = LockSupport.class;
// Eager class load observed to help JIT during startup
ensureLoaded = ReservationNode.class;
}
}