JDK-8019485 : NPG: The test MemoryTestAllGC.sh needs to be updated to support metaspace
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs25
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2013-07-01
  • Updated: 2013-07-01
  • Resolved: 2013-07-01
Related Reports
Duplicate :  
Relates :  
Description
The test java/lang/management/MemoryMXBean/MemoryTestAllGC.sh does not take the Metaspace MemoryMXBean into account when counting the number of non-heap memory pools.

An example of a failure:

Exception in thread "main" java.lang.RuntimeException: TEST FAILED:             
Number of non-heap pools = 2 but expected <= 1 and >= 1                         
    at MemoryTest.checkMemoryPools(MemoryTest.java:113)                         
    at MemoryTest.main(MemoryTest.java:75)
Comments
The test MemoryTestAllGC.sh is just a shell wrapper around MemoryTest.java, the fix for MemoryTest.java will fix MemoryTestAllGC.sh as well.
01-07-2013