JDK-8067005 : Several java/lang/invoke tests fail due to exhausted code cache
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Affected Version: 8u40,8u65,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2014-12-09
  • Updated: 2016-05-27
  • Resolved: 2015-06-17
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 8 JDK 9
8u60Fixed 9 b70Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Description
Several java/lang/invoke tests fail due to exhausted code cache:
java/lang/invoke/TestCatchExceptionWithVarargs.java
java/lang/invoke/VarargsArrayTest.java

Issue could be reproduced with Client VM and Xcomp mode.
Code cache size for a Client VM is pretty small comparing to Server VM, about 32m, so it's pretty easy to run out of it, especially if a test generates many different methods.

I think that default code cache size for such tests should be increased.
Comments
http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-June/034166.html
17-06-2015

[~kshefov], could you please fix these tests in the same way you fixed other tests?
02-02-2015

[~iignatyev] could you please dispatch this issue appropriately?
28-01-2015

The test should either increase the code cache size it requires or be ready to tolerate its exhaustion.
28-01-2015

Retriage: ILW = out of space in code cache;all configs intermittently;increase code cache=MMM=P3
12-12-2014

ILW = out of space in code cache;client -Xcomp;increase code cache=MMM=P3
11-12-2014