JDK-8212727 : [TESTBUG] TestPrintCodeCacheOption.java failed on machine with a lot CPUs
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 12
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2018-10-21
  • Updated: 2018-10-22
  • Resolved: 2018-10-22
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 12
12Resolved
Related Reports
Duplicate :  
Description
I don't know why we did not see it on big SPARC machines.
For now I consider that it is test issue which specify incorrect NonNMethodCodeHeapSize value.

I got this failure running test on Knights Landing:
[0.018s][info][os,cpu] CPU:total 272 (initial active 272) (68 cores per cpu, 4 threads per core) family 6 model 87 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, adx, evex, fma

compiler/codecache/cli/printcodecache/TestPrintCodeCacheOption.java test failed when executing subtest with next flags:

java -server -XX:-NeverActAsServerClassMachine -XX:+TieredCompilation -XX:TieredStopAtLevel=0 -XX:+PrintCodeCache -XX:-UseLargePages -XX:+SegmentedCodeCache -XX:ReservedCodeCacheSize=62914560 -XX:NonNMethodCodeHeapSize=20971520 -XX:NonProfiledCodeHeapSize=20971520 -XX:ProfiledCodeHeapSize=20971520 -version

Error occurred during initialization of VM
Not enough space in non-nmethod code heap to run VM: 20480K < 21475K

compiler/codecache/cli/codeheapsize/TestCodeHeapSizeOptions.java test failed the same way with next flags:
java  -server -XX:-NeverActAsServerClassMachine -XX:+TieredCompilation -XX:TieredStopAtLevel=0 -XX:+SegmentedCodeCache -XX:ReservedCodeCacheSize=62914560 -XX:NonNMethodCodeHeapSize=20971520 -XX:NonProfiledCodeHeapSize=20971520 -XX:ProfiledCodeHeapSize=20971520 -XX:+PrintFlagsFinal -version

Comments
This is a duplicate of JDK-8177899 which was incorrectly closed as "Not an Issue". I'll re-open that bug and prepare a fix.
22-10-2018