InternalError: Memory Pool (Shenandoah) not found

Robert Stupp snazy at snazy.de
Sat Nov 3 20:05:54 UTC 2018


The following code snippet produces an InternalError when either the 
getPeakUsage() or getUsage() methods for the memory-pool "Shenandoah" 
are called.

for(MemoryPoolMXBean pool: 
ManagementFactory.getMemoryPoolMXBeans())System.out.println(pool.getName()+ 
" : " + pool.getPeakUsage());

java.lang.InternalError: Memory Pool not found
	at java.management/sun.management.MemoryPoolImpl.getPeakUsage0(Native Method)
	at java.management/sun.management.MemoryPoolImpl.getPeakUsage(MemoryPoolImpl.java:99)

It's 100% reproducible with recent builds from 
http://hg.openjdk.java.net/shenandoah/jdk + 
http://hg.openjdk.java.net/shenandoah/jdk11

I'm pretty sure that this worked a few months ago.

Robert

-- 
Robert Stupp
@snazy



More information about the shenandoah-dev mailing list