mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8202373: Forcing eager initialization of CHM$ReservationNode avoids deoptimization
Reviewed-by: martin, psandoz, dholmes, redestad
This commit is contained in:
parent
3c202e01d8
commit
a4c5934169
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue