< prev index next >

test/hotspot/jtreg/gc/shenandoah/oom/TestThreadFailure.java

Print this page
*** 1,7 ***
--- 1,8 ---
  /*
   * Copyright (c) 2018, Red Hat, Inc. All rights reserved.
+  * Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

*** 71,7 ***
--- 72,21 ---
  
              analyzer.shouldHaveExitValue(0);
              analyzer.shouldContain("java.lang.OutOfMemoryError");
              analyzer.shouldContain("All good");
          }
+ 
+         {
+             ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder(
+                     "-Xmx32m",
+                     "-XX:+UnlockExperimentalVMOptions", "-XX:ShenandoahNoProgressThreshold=12",
+                     "-XX:+UseShenandoahGC", "-XX:ShenandoahGCMode=generational",
+                     TestThreadFailure.class.getName(),
+                     "test");
+ 
+             OutputAnalyzer analyzer = new OutputAnalyzer(pb.start());
+             analyzer.shouldHaveExitValue(0);
+             analyzer.shouldContain("java.lang.OutOfMemoryError");
+             analyzer.shouldContain("All good");
+         }
      }
  }
< prev index next >