changeset 9446:f8c527c9467f

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 85f20f6ec580
children 52488f6a3c4a
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	Wed Apr 07 15:36:03 2021 +0800
+++ b/test/gc/g1/TestHumongousShrinkHeap.java	Mon Sep 07 21:30:45 2015 +0400
@@ -57,6 +57,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),