changeset 8952:d750cc39ed60

8132709: [TESTBUG] gc/g1/TestHumongousShrinkHeap.java might fail on embedded Reviewed-by: tschatzl, jwilhelm
author dfazunen
date Mon, 07 Sep 2015 21:30:45 +0400
parents f74b3ce62e1f
children e7dadf42aa35
files test/gc/g1/TestHumongousShrinkHeap.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/gc/g1/TestHumongousShrinkHeap.java	Fri Sep 04 17:33:56 2015 -0700
+++ b/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),