< prev index next >

test/hotspot/jtreg/gc/shenandoah/mxbeans/TestChurnNotifications.java

Print this page
rev 59879 : [mq]: 8249000


   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 /*
  26  * @test TestChurnNotifications
  27  * @summary Check that MX notifications are reported for all cycles
  28  * @requires vm.gc.Shenandoah & !vm.graal.enabled
  29  *
  30  * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  31  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
  32  *      -XX:+ShenandoahDegeneratedGC -Dprecise=true
  33  *      TestChurnNotifications
  34  *
  35  * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  36  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
  37  *      -XX:-ShenandoahDegeneratedGC -Dprecise=true
  38  *      TestChurnNotifications
  39  */
  40 
  41 /*
  42  * @test TestChurnNotifications
  43  * @summary Check that MX notifications are reported for all cycles
  44  * @requires vm.gc.Shenandoah & !vm.graal.enabled
  45  *
  46  * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  47  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
  48  *      -Dprecise=false
  49  *      TestChurnNotifications
  50  *
  51  * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  52  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
  53  *      -Dprecise=false
  54  *      TestChurnNotifications
  55  *
  56  * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  57  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=static
  58  *      -Dprecise=false
  59  *      TestChurnNotifications
  60  *
  61  * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  62  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact
  63  *      -Dprecise=false
  64  *      TestChurnNotifications
  65  */
  66 
  67 /*
  68  * @test TestChurnNotifications
  69  * @summary Check that MX notifications are reported for all cycles
  70  * @requires vm.gc.Shenandoah & !vm.graal.enabled
  71  *
  72  * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  73  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive
  74  *      -Dprecise=false
  75  *      TestChurnNotifications
  76  *
  77  * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  78  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
  79  *      -Dprecise=false
  80  *      TestChurnNotifications
  81  */
  82 
  83 import java.util.*;
  84 import java.util.concurrent.atomic.*;
  85 import javax.management.*;
  86 import java.lang.management.*;
  87 import javax.management.openmbean.*;
  88 
  89 import com.sun.management.GarbageCollectionNotificationInfo;
  90 




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 /*
  26  * @test TestChurnNotifications
  27  * @summary Check that MX notifications are reported for all cycles
  28  * @requires vm.gc.Shenandoah
  29  *
  30  * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  31  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
  32  *      -XX:+ShenandoahDegeneratedGC -Dprecise=true
  33  *      TestChurnNotifications
  34  *
  35  * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  36  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
  37  *      -XX:-ShenandoahDegeneratedGC -Dprecise=true
  38  *      TestChurnNotifications
  39  */
  40 
  41 /*
  42  * @test TestChurnNotifications
  43  * @summary Check that MX notifications are reported for all cycles
  44  * @requires vm.gc.Shenandoah
  45  *
  46  * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  47  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
  48  *      -Dprecise=false
  49  *      TestChurnNotifications
  50  *
  51  * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  52  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
  53  *      -Dprecise=false
  54  *      TestChurnNotifications
  55  *
  56  * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  57  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=static
  58  *      -Dprecise=false
  59  *      TestChurnNotifications
  60  *
  61  * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  62  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact
  63  *      -Dprecise=false
  64  *      TestChurnNotifications
  65  */
  66 
  67 /*
  68  * @test TestChurnNotifications
  69  * @summary Check that MX notifications are reported for all cycles
  70  * @requires vm.gc.Shenandoah
  71  *
  72  * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  73  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive
  74  *      -Dprecise=false
  75  *      TestChurnNotifications
  76  *
  77  * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  78  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
  79  *      -Dprecise=false
  80  *      TestChurnNotifications
  81  */
  82 
  83 import java.util.*;
  84 import java.util.concurrent.atomic.*;
  85 import javax.management.*;
  86 import java.lang.management.*;
  87 import javax.management.openmbean.*;
  88 
  89 import com.sun.management.GarbageCollectionNotificationInfo;
  90 


< prev index next >