< prev index next > test/hotspot/jtreg/gc/shenandoah/options/TestModeUnlock.java
Print this page
/*
* Copyright (c) 2020, 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.
DIAGNOSTIC,
EXPERIMENTAL,
}
public static void main(String[] args) throws Exception {
! testWith("-XX:ShenandoahGCMode=satb", Mode.PRODUCT);
! testWith("-XX:ShenandoahGCMode=passive", Mode.DIAGNOSTIC);
}
private static void testWith(String h, Mode mode) throws Exception {
{
OutputAnalyzer output = ProcessTools.executeLimitedTestJava(
DIAGNOSTIC,
EXPERIMENTAL,
}
public static void main(String[] args) throws Exception {
! testWith("-XX:ShenandoahGCMode=satb", Mode.PRODUCT);
! testWith("-XX:ShenandoahGCMode=passive", Mode.DIAGNOSTIC);
+ testWith("-XX:ShenandoahGCMode=generational", Mode.EXPERIMENTAL);
}
private static void testWith(String h, Mode mode) throws Exception {
{
OutputAnalyzer output = ProcessTools.executeLimitedTestJava(
< prev index next >