TESTFAIL:java/lang/invoke/LFCaching/LFSingleThreadCachingTest.java
TESTFAIL:java/lang/invoke/LFCaching/LFMultiThreadCachingTest.java
After JDK-8058293, we still see these tests fail on some platforms due to:
java.lang.VirtualMachineError: out of space in CodeCache for adapters
From the log:
----------System.out:(6/265)----------
-Dseed=4103170949823617197
-DtestLimit=2000
CodeCache: size=32768Kb used=32284Kb max_used=32284Kb free=483Kb
bounds [0x40f28000, 0x42eb0000, 0x42f28000]
total_blobs=16753 nmethods=6199 adapters=10485
compilation: disabled (not enough contiguous free space left)
----------System.err:(1791/90864)----------
...
Tested LF caching feature with MethodHandles.guardWithTest method.
java.lang.VirtualMachineError: out of space in CodeCache for adapters
at sun.misc.Unsafe.defineAnonymousClass(Native Method)
at java.lang.invoke.InvokerBytecodeGenerator.loadAndInitializeInvokerClass(InvokerBytecodeGenerator.java:282)
at java.lang.invoke.InvokerBytecodeGenerator.loadMethod(InvokerBytecodeGenerator.java:274)
at java.lang.invoke.InvokerBytecodeGenerator.generateLambdaFormInterpreterEntryPoint(InvokerBytecodeGenerator.java:1282)
at java.lang.invoke.LambdaForm.getPreparedForm(LambdaForm.java:674)
at java.lang.invoke.LambdaForm.prepare(LambdaForm.java:599)
at java.lang.invoke.MethodHandle.<init>(MethodHandle.java:459)
at java.lang.invoke.BoundMethodHandle.<init>(BoundMethodHandle.java:56)
at java.lang.invoke.BoundMethodHandle$Species_I.<init>(Species_I)
at java.lang.invoke.BoundMethodHandle$Species_I.copyWith(Species_I)
at java.lang.invoke.MethodHandles.dropArguments(MethodHandles.java:2513)
at com.oracle.testlibrary.jsr292.Helper.addTrailingArgs(Helper.java:172)
at TestMethods.methodHandleGenerator(TestMethods.java:644)
at TestMethods.access$200(TestMethods.java:41)
at TestMethods$9.getMH(TestMethods.java:319)
at TestMethods.getTestCaseMH(TestMethods.java:541)
at LFSingleThreadCachingTest.doTest(LFSingleThreadCachingTest.java:62)
at LambdaFormTestCase.runTests(LambdaFormTestCase.java:98)
at LFSingleThreadCachingTest.main(LFSingleThreadCachingTest.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:745)
...
STATUS:Failed.`main' threw exception: java.lang.Error: 794 of 1989 test cases FAILED! Rerun the test with the same "-Dseed=" option as in the log file!