JDK-8059071 : java/lang/invoke/LFCaching/LFSingleThreadCachingTest.java - java.lang.OutOfMemoryError: Java heap space
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2014-09-24
  • Updated: 2014-09-25
  • Resolved: 2014-09-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Duplicate :  
Relates :  
Description
#section:main
----------messages:(3/264)----------
command: main -Djava.lang.invoke.MethodHandle.USE_LF_EDITOR=true LFSingleThreadCachingTest
reason: User specified action: run main/othervm/timeout=300 -Djava.lang.invoke.MethodHandle.USE_LF_EDITOR=true LFSingleThreadCachingTest 
elapsed time (seconds): 275.452
----------System.out:(2/47)----------
-Dseed=-6117488685739596149
-DtestLimit=2000
----------System.err:(1433/56721)----------
Iteration 0:
Tested LF caching feature with MethodHandles.foldArguments method.
PASSED
Tested LF caching feature with MethodHandles.dropArguments method.
PASSED
Tested LF caching feature with MethodHandles.explicitCastArguments method.
PASSED
Tested LF caching feature with MethodHandles.filterArguments method.
PASSED
.........
Iteration 38:
Tested LF caching feature with MethodHandles.foldArguments method.
PASSED
Tested LF caching feature with MethodHandles.dropArguments method.
PASSED
Tested LF caching feature with MethodHandles.explicitCastArguments method.
java.lang.OutOfMemoryError: Java heap space
	at jdk.internal.org.objectweb.asm.ByteVector.enlarge(ByteVector.java:364)
	at jdk.internal.org.objectweb.asm.ByteVector.put11(ByteVector.java:129)
	at jdk.internal.org.objectweb.asm.MethodWriter.visitVarInsn(MethodWriter.java:845)
	at java.lang.invoke.InvokerBytecodeGenerator.emitLoadInsn(InvokerBytecodeGenerator.java:392)
	at java.lang.invoke.InvokerBytecodeGenerator.generateLambdaFormInterpreterEntryPointBytes(InvokerBytecodeGenerator.java:1303)
	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_L13.<init>(Species_L13)
	at java.lang.invoke.BoundMethodHandle$Species_L13.make(Species_L13)
	at java.lang.invoke.LambdaForm$DMH/2223931.invokeStatic_L15_L(LambdaForm$DMH)
	at java.lang.invoke.BoundMethodHandle$Species_L12.copyWithExtendL(Species_L12)
	at java.lang.invoke.MethodHandleImpl.makePairwiseConvertByEditor(MethodHandleImpl.java:234)
	at java.lang.invoke.MethodHandleImpl.makePairwiseConvert(MethodHandleImpl.java:194)
	at java.lang.invoke.MethodHandleImpl.makePairwiseConvert(MethodHandleImpl.java:383)
	at java.lang.invoke.MethodHandles.explicitCastArguments(MethodHandles.java:2033)
	at TestMethods$3.getMH(TestMethods.java:146)
	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)
FAILED
Tested LF caching feature with MethodHandles.filterArguments method.
PASSED
Tested LF caching feature with MethodHandles.filterReturnValue method.
PASSED
Tested LF caching feature with MethodHandles.insertArguments method.
java.lang.OutOfMemoryError: Java heap space
	at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:68)
	at java.lang.StringBuilder.<init>(StringBuilder.java:112)
	at java.lang.invoke.BoundMethodHandle$Factory.makeSignature(BoundMethodHandle.java:808)
	at java.lang.invoke.BoundMethodHandle$Factory.generateConcreteBMHClass(BoundMethodHandle.java:691)
	at java.lang.invoke.BoundMethodHandle$SpeciesData.get(BoundMethodHandle.java:401)
	at java.lang.invoke.BoundMethodHandle$SpeciesData.extendWith(BoundMethodHandle.java:388)
	at java.lang.invoke.LambdaFormEditor.newSpeciesData(LambdaFormEditor.java:363)
	at java.lang.invoke.LambdaFormEditor.bindArgumentForm(LambdaFormEditor.java:426)
	at java.lang.invoke.LambdaFormEditor.bindArgumentI(LambdaFormEditor.java:377)
	at java.lang.invoke.BoundMethodHandle.bindArgumentI(BoundMethodHandle.java:101)
	at java.lang.invoke.MethodHandles.insertArgumentPrimitive(MethodHandles.java:2440)
	at java.lang.invoke.MethodHandles.insertArguments(MethodHandles.java:2421)
	at TestMethods$6.getMH(TestMethods.java:236)
	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)
FAILED
Tested LF caching feature with MethodHandles.permuteArguments method.
java.lang.OutOfMemoryError: Java heap space
	at java.lang.reflect.Array.newArray(Native Method)
	at java.lang.reflect.Array.newInstance(Array.java:75)
	at java.util.Arrays.copyOf(Arrays.java:3212)
	at java.util.Arrays.copyOf(Arrays.java:3181)
	at java.lang.invoke.LambdaFormBuffer.growNames(LambdaFormBuffer.java:155)
	at java.lang.invoke.LambdaFormBuffer.insertName(LambdaFormBuffer.java:383)
	at java.lang.invoke.LambdaFormBuffer.insertParameter(LambdaFormBuffer.java:398)
	at java.lang.invoke.LambdaFormEditor.addArgumentForm(LambdaFormEditor.java:461)
	at java.lang.invoke.MethodHandles.permuteArguments(MethodHandles.java:2150)
	at TestMethods$7.getMH(TestMethods.java:271)
	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)
FAILED
Tested LF caching feature with MethodHandles.throwException method.
PASSED
Tested LF caching feature with MethodHandles.guardWithTest method.
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space

JavaTest Message: Test threw exception: java.lang.OutOfMemoryError: Java heap space
JavaTest Message: shutting down test

java.lang.OutOfMemoryError: Java heap space
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "MainThread"

Comments
Most probably a duplicate of JDK-8057020.
25-09-2014

ILW=OOM in test (no apparent product bug), this test only, none + nightly = HLH = P2
25-09-2014