Duplicate :
|
|
Duplicate :
|
|
Relates :
|
java/lang/invoke/LFCaching/LFGarbageCollectedTest.java: Tested LF caching feature with MethodHandles.catchException method. java.lang.InternalError: DMH.invokeSpecial_LLDIJLFLIIDIIFI3F3JDLFDLLIILIFILI3FJFFIIFI4JIFIDIL73_L=Lambda(... ... Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded ... The reason is BMH$Species_* classes can't be unloaded, because they are loaded using bootstrap class loader (see JDK-8078602 for details). The test creates method handles with random signatures, so the more it runs the more BMH$Species_* classes are generated.
|