JDK-8157956 : OverflowCodeCacheTest.java fails with Out of space in CodeCache for method handle intrinsic
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-05-26
  • Updated: 2016-09-29
  • Resolved: 2016-09-01
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
9 b138Fixed
Related Reports
Relates :  
Description
----------System.err:(34/2714)----------
Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=
java.lang.BootstrapMethodError: call site initialization exception
	at java.lang.invoke.CallSite.makeSite(java.base@9-internal/CallSite.java:347)
	at java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(java.base@9-internal/MethodHandleNatives.java:250)
	at java.lang.invoke.MethodHandleNatives.linkCallSite(java.base@9-internal/MethodHandleNatives.java:240)
	at jdk.test.lib.Asserts.getMessage(Asserts.java:451)
	at jdk.test.lib.Asserts.assertNotEquals(Asserts.java:292)
	at OverflowCodeCacheTest.test(OverflowCodeCacheTest.java:85)
	at OverflowCodeCacheTest.main(OverflowCodeCacheTest.java:57)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.lang.Thread.run(java.base@9-internal/Thread.java:843)
Caused by: java.lang.invoke.StringConcatException: Generator failed
	at java.lang.invoke.StringConcatFactory.generate(java.base@9-internal/StringConcatFactory.java:732)
	at java.lang.invoke.StringConcatFactory.doStringConcat(java.base@9-internal/StringConcatFactory.java:637)
	at java.lang.invoke.StringConcatFactory.makeConcatWithConstants(java.base@9-internal/StringConcatFactory.java:552)
	at java.lang.invoke.CallSite.makeSite(java.base@9-internal/CallSite.java:300)
	... 12 more
Caused by: java.lang.VirtualMachineError: Out of space in CodeCache for method handle intrinsic
	at java.lang.invoke.BoundMethodHandle$Species_L11.copyWithExtendL(java.base@9-internal/Species_L11)
	at java.lang.invoke.MethodHandles.foldArguments(java.base@9-internal/MethodHandles.java:4837)
	at java.lang.invoke.MethodHandles.foldArguments(java.base@9-internal/MethodHandles.java:3814)
	at java.lang.invoke.StringConcatFactory$MethodHandleInlineCopyStrategy.generate(java.base@9-internal/StringConcatFactory.java:1602)
	at java.lang.invoke.StringConcatFactory.generate(java.base@9-internal/StringConcatFactory.java:727)
	... 15 more

Comments
ILW = false stress test failure in nightly; reproduces; none = MMH = P3
09-06-2016

The problem is not new - MH.linkTo* linkers are never unloaded. So, a stress test can cause code cache overflow and further attempts to create a linker will fail with VME. Most likely, triggered by JDK-8148604. Removing integration_blocker label.
30-05-2016