< prev index next >

test/hotspot/jtreg/gc/shenandoah/jni/TestPinnedGarbage.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.

*** 59,10 ***
--- 60,26 ---
   *      -XX:+UseShenandoahGC
   *      -XX:+ShenandoahVerify
   *      TestPinnedGarbage
   */
  
+ /* @test id=generational
+  * @summary Test that garbage in the pinned region does not crash VM
+  * @key randomness
+  * @requires vm.gc.Shenandoah
+  * @library /test/lib
+  *
+  * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx128m
+  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
+  *      -XX:+ShenandoahVerify
+  *      TestPinnedGarbage
+  *
+  * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx128m
+  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
+  *      TestPinnedGarbage
+  */
+ 
  import java.util.Arrays;
  import java.util.Random;
  import jdk.test.lib.Utils;
  
  public class TestPinnedGarbage {
< prev index next >