# HG changeset patch # User dfazunen # Date 1441647045 -14400 # Node ID 42a9450265aedb2a909fafca5d5fb4e75ce285c3 # Parent 7ed47d0b888a30e082eebf6631f1911db07686e1 8132709: [TESTBUG] gc/g1/TestHumongousShrinkHeap.java might fail on embedded Reviewed-by: tschatzl, jwilhelm diff -r 7ed47d0b888a -r 42a9450265ae hotspot/test/gc/g1/TestHumongousShrinkHeap.java --- a/hotspot/test/gc/g1/TestHumongousShrinkHeap.java Fri Sep 04 17:33:56 2015 -0700 +++ b/hotspot/test/gc/g1/TestHumongousShrinkHeap.java Mon Sep 07 21:30:45 2015 +0400 @@ -58,6 +58,10 @@ public static void main(String[] args) { + if (HUMON_COUNT == 0) { + System.out.println("Skipped. Heap is too small"); + return; + } System.out.format("Running with %s max heap size. " + "Will allocate humongous object of %s size %d times.%n", MemoryUsagePrinter.humanReadableByteCount(AVAILABLE_MEMORY, false),