RFR(XS): 8209743: [TESTBUG] java/lang/management/MemoryMXBean/LowMemoryTest2.sh fails with OutOfMemoryError running in CDS mode

mandy chung mandy.chung at oracle.com
Tue Aug 28 18:49:11 UTC 2018

On 8/28/18 11:34 AM, Calvin Cheung wrote:
>> How long does this test run with this patch? fastdebug build.
> With fastdebug and CDS archive:
> solaris/sparcv9    12s - 27s
> linux-x64            6s - 13s
> macosx                6s - 11s

Thanks.   Not too bad.

>> Is the above comment still valid?
> I'll update comment before push.
> How about the following comment?
> # Also we set the max metaspace to 16MB/32MB - otherwise the test 
> takes too
> # long to run. The 32MB setting is required for running with CDS archive.

This comment implies that the test detects if it's running with CDS 
archive and uses different MaxMetaspaceSize.   I like that but I think 
your patch unconditionally sets to 32MB.


More information about the hotspot-runtime-dev mailing list