This commit is contained in:
Mikael Vidstedt 2020-07-10 23:12:29 -07:00
commit 09510a15a1
563 changed files with 574 additions and 744 deletions

View file

@ -87,8 +87,12 @@ final class ProcessHandleImpl implements ProcessHandle {
ThreadGroup tg = Thread.currentThread().getThreadGroup(); ThreadGroup tg = Thread.currentThread().getThreadGroup();
while (tg.getParent() != null) tg = tg.getParent(); while (tg.getParent() != null) tg = tg.getParent();
ThreadGroup systemThreadGroup = tg; ThreadGroup systemThreadGroup = tg;
// For a debug build, the stack shadow zone is larger;
// Increase the total stack size to avoid potential stack overflow.
int debugDelta = "release".equals(System.getProperty("jdk.debug")) ? 0 : (4*4096);
final long stackSize = Boolean.getBoolean("jdk.lang.processReaperUseDefaultStackSize") final long stackSize = Boolean.getBoolean("jdk.lang.processReaperUseDefaultStackSize")
? 0 : REAPER_DEFAULT_STACKSIZE; ? 0 : REAPER_DEFAULT_STACKSIZE + debugDelta;
ThreadFactory threadFactory = grimReaper -> { ThreadFactory threadFactory = grimReaper -> {
Thread t = new Thread(systemThreadGroup, grimReaper, Thread t = new Thread(systemThreadGroup, grimReaper,

View file

@ -472,7 +472,9 @@ public class LinuxDebBundler extends LinuxPackageBundler {
outFile.toAbsolutePath().toString())); outFile.toAbsolutePath().toString()));
// run dpkg // run dpkg
Executor.of(cmdline.toArray(String[]::new)).executeExpectSuccess(); RetryExecutor.retryOnKnownErrorMessage(
"semop(1): encountered an error: Invalid argument").execute(
cmdline.toArray(String[]::new));
Log.verbose(MessageFormat.format(I18N.getString( Log.verbose(MessageFormat.format(I18N.getString(
"message.output-to-location"), outFile.toAbsolutePath().toString())); "message.output-to-location"), outFile.toAbsolutePath().toString()));

View file

@ -0,0 +1,95 @@
/*
* Copyright (c) 2020, Oracle and/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. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package jdk.incubator.jpackage.internal;
import java.io.IOException;
import java.util.function.Consumer;
public final class RetryExecutor {
RetryExecutor() {
setMaxAttemptsCount(5);
setAttemptTimeoutMillis(2 * 1000);
}
RetryExecutor setMaxAttemptsCount(int v) {
attempts = v;
return this;
}
RetryExecutor setAttemptTimeoutMillis(int v) {
timeoutMillis = v;
return this;
}
RetryExecutor setExecutorInitializer(Consumer<Executor> v) {
executorInitializer = v;
return this;
}
void abort() {
aborted = true;
}
static RetryExecutor retryOnKnownErrorMessage(String v) {
RetryExecutor result = new RetryExecutor();
return result.setExecutorInitializer(exec -> {
exec.setOutputConsumer(output -> {
if (!output.anyMatch(v::equals)) {
result.abort();
}
});
});
}
void execute(String cmdline[]) throws IOException {
aborted = false;
for (;;) {
try {
Executor exec = Executor.of(cmdline);
if (executorInitializer != null) {
executorInitializer.accept(exec);
}
exec.executeExpectSuccess();
break;
} catch (IOException ex) {
if (aborted || (--attempts) <= 0) {
throw ex;
}
}
try {
Thread.sleep(timeoutMillis);
} catch (InterruptedException ex) {
Log.verbose(ex);
throw new RuntimeException(ex);
}
}
}
private Consumer<Executor> executorInitializer;
private boolean aborted;
private int attempts;
private int timeoutMillis;
}

View file

@ -0,0 +1,118 @@
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, Red Hat Inc. 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.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.graalvm.compiler.core.test;
import jdk.vm.ci.meta.ResolvedJavaMethod;
import org.graalvm.compiler.core.common.type.IntegerStamp;
import org.graalvm.compiler.core.common.type.Stamp;
import org.graalvm.compiler.nodes.NodeView;
import org.graalvm.compiler.nodes.StructuredGraph;
import org.graalvm.compiler.nodes.memory.ReadNode;
import org.junit.Assert;
import org.junit.Test;
// See https://bugs.openjdk.java.net/browse/JDK-8248598
public class VolatileAccessReadEliminationTest extends GraalCompilerTest {
private static int field;
private Thread thread;
private static long[] array = new long[1];
static {
arrayBaseOffset = UNSAFE.arrayBaseOffset(long[].class);
}
private static int arrayBaseOffset;
public static int testMethod1() {
int v = field;
UNSAFE.putLongVolatile(array, arrayBaseOffset, 1);
while (UNSAFE.getLongVolatile(array, arrayBaseOffset) != 2) {
// wait for other thread
}
return v + field; // field load shouldn't common with one above.
}
@Test
public void test1() {
test("testMethod1");
}
@Override
protected void before(ResolvedJavaMethod method) {
field = 0;
UNSAFE.putLongVolatile(array, arrayBaseOffset, 0);
thread = new Thread() {
@Override
public void run() {
while (UNSAFE.getLongVolatile(array, arrayBaseOffset) != 1) {
// wait for test thread to start
}
field = 0x42;
UNSAFE.putLongVolatile(array, arrayBaseOffset, 2);
}
};
thread.start();
}
@Override
protected void after() {
try {
thread.join();
} catch (InterruptedException e) {
}
}
public static int testMethod2(int offset) {
int v = field;
long v2 = UNSAFE.getLongVolatile(array, offset);
return v + field + (int) v2; // field load shouldn't common with one above.
}
@Test
public void test2() {
final StructuredGraph graph = getFinalGraph("testMethod2");
Assert.assertEquals(2, getFieldReads(graph));
}
public static int testMethod3(int offset) {
int v = field;
UNSAFE.putLongVolatile(array, offset, 0x42);
return v + field; // field load shouldn't common with one above.
}
@Test
public void test3() {
final StructuredGraph graph = getFinalGraph("testMethod3");
Assert.assertEquals(2, getFieldReads(graph));
}
private static int getFieldReads(StructuredGraph graph) {
return graph.getNodes().filter(n -> n instanceof ReadNode).filter(n -> {
final Stamp stamp = ((ReadNode) n).stamp(NodeView.DEFAULT);
return stamp instanceof IntegerStamp && ((IntegerStamp) stamp).getBits() == 32;
}).count();
}
}

View file

@ -179,6 +179,10 @@ public final class PEReadEliminationClosure extends PartialEscapeClosure<PEReadE
} }
private boolean processUnsafeLoad(RawLoadNode load, PEReadEliminationBlockState state, GraphEffectList effects) { private boolean processUnsafeLoad(RawLoadNode load, PEReadEliminationBlockState state, GraphEffectList effects) {
if (load.isVolatile()) {
state.killReadCache();
return false;
}
if (load.offset().isConstant()) { if (load.offset().isConstant()) {
ResolvedJavaType type = StampTool.typeOrNull(load.object()); ResolvedJavaType type = StampTool.typeOrNull(load.object());
if (type != null && type.isArray()) { if (type != null && type.isArray()) {
@ -205,6 +209,10 @@ public final class PEReadEliminationClosure extends PartialEscapeClosure<PEReadE
} }
private boolean processUnsafeStore(RawStoreNode store, PEReadEliminationBlockState state, GraphEffectList effects) { private boolean processUnsafeStore(RawStoreNode store, PEReadEliminationBlockState state, GraphEffectList effects) {
if (store.isVolatile()) {
state.killReadCache();
return false;
}
ResolvedJavaType type = StampTool.typeOrNull(store.object()); ResolvedJavaType type = StampTool.typeOrNull(store.object());
if (type != null && type.isArray()) { if (type != null && type.isArray()) {
JavaKind accessKind = store.accessKind(); JavaKind accessKind = store.accessKind();

View file

@ -229,6 +229,7 @@ compiler/intrinsics/mathexact/LongMulOverflowTest.java 8207267 generic-all
compiler/loopopts/TestOverunrolling.java 8207267 generic-all compiler/loopopts/TestOverunrolling.java 8207267 generic-all
compiler/jsr292/NonInlinedCall/InvokeTest.java 8207267 generic-all compiler/jsr292/NonInlinedCall/InvokeTest.java 8207267 generic-all
compiler/codegen/TestTrichotomyExpressions.java 8207267 generic-all compiler/codegen/TestTrichotomyExpressions.java 8207267 generic-all
gc/stress/TestReclaimStringsLeaksMemory.java 8207267 generic-all
runtime/exceptionMsgs/AbstractMethodError/AbstractMethodErrorTest.java 8222582 generic-all runtime/exceptionMsgs/AbstractMethodError/AbstractMethodErrorTest.java 8222582 generic-all

View file

@ -27,7 +27,7 @@
* @bug 8059022 * @bug 8059022
* @modules java.base/jdk.internal.misc:+open * @modules java.base/jdk.internal.misc:+open
* @summary Validate barriers after Unsafe getReference, CAS and swap (GetAndSet) * @summary Validate barriers after Unsafe getReference, CAS and swap (GetAndSet)
* @requires vm.gc.Z & !vm.graal.enabled * @requires vm.gc.Z
* @library /test/lib * @library /test/lib
* @run main/othervm -XX:+UseZGC -XX:+UnlockDiagnosticVMOptions -XX:+ZVerifyViews -XX:ZCollectionInterval=1 -XX:-CreateCoredumpOnCrash -XX:CompileCommand=dontinline,*::mergeImpl* compiler.gcbarriers.UnsafeIntrinsicsTest * @run main/othervm -XX:+UseZGC -XX:+UnlockDiagnosticVMOptions -XX:+ZVerifyViews -XX:ZCollectionInterval=1 -XX:-CreateCoredumpOnCrash -XX:CompileCommand=dontinline,*::mergeImpl* compiler.gcbarriers.UnsafeIntrinsicsTest
*/ */

View file

@ -23,7 +23,7 @@
/* /*
* @test * @test
* @requires vm.gc.Z & !vm.graal.enabled * @requires vm.gc.Z
* @bug 8237859 * @bug 8237859
* @summary A LoadP node has a wrong control input (too early) which results in an out-of-bounds read of an object array with ZGC. * @summary A LoadP node has a wrong control input (too early) which results in an out-of-bounds read of an object array with ZGC.
* *

View file

@ -28,7 +28,8 @@ package gc;
* @test CriticalNativeStressEpsilon * @test CriticalNativeStressEpsilon
* @bug 8199868 * @bug 8199868
* @library / * @library /
* @requires (os.arch =="x86_64" | os.arch == "amd64" | os.arch=="x86" | os.arch=="i386") & vm.gc.Epsilon & !vm.graal.enabled * @requires os.arch =="x86_64" | os.arch == "amd64" | os.arch=="x86" | os.arch=="i386"
* @requires vm.gc.Epsilon
* @summary test argument unpacking nmethod wrapper of critical native method * @summary test argument unpacking nmethod wrapper of critical native method
* @run main/othervm/native -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xcomp -Xmx256M -XX:+CriticalJNINatives gc.CriticalNativeArgs * @run main/othervm/native -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xcomp -Xmx256M -XX:+CriticalJNINatives gc.CriticalNativeArgs
*/ */
@ -37,7 +38,8 @@ package gc;
* @test CriticalNativeStressShenandoah * @test CriticalNativeStressShenandoah
* @bug 8199868 * @bug 8199868
* @library / * @library /
* @requires (os.arch =="x86_64" | os.arch == "amd64" | os.arch=="x86" | os.arch=="i386") & vm.gc.Shenandoah & !vm.graal.enabled * @requires os.arch =="x86_64" | os.arch == "amd64" | os.arch=="x86" | os.arch=="i386"
* @requires vm.gc.Shenandoah
* @summary test argument unpacking nmethod wrapper of critical native method * @summary test argument unpacking nmethod wrapper of critical native method
* @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive -XX:+ShenandoahDegeneratedGC -Xcomp -Xmx512M -XX:+CriticalJNINatives gc.CriticalNativeArgs * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive -XX:+ShenandoahDegeneratedGC -Xcomp -Xmx512M -XX:+CriticalJNINatives gc.CriticalNativeArgs
* @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive -XX:-ShenandoahDegeneratedGC -Xcomp -Xmx512M -XX:+CriticalJNINatives gc.CriticalNativeArgs * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive -XX:-ShenandoahDegeneratedGC -Xcomp -Xmx512M -XX:+CriticalJNINatives gc.CriticalNativeArgs

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -49,7 +49,7 @@ import jdk.internal.vm.annotation.Contended;
/* /*
* @test TestHumongousReferenceObjectShenandoah * @test TestHumongousReferenceObjectShenandoah
* @summary Test that verifies that iteration over large, plain Java objects, that potentially cross region boundaries, with references in them works. * @summary Test that verifies that iteration over large, plain Java objects, that potentially cross region boundaries, with references in them works.
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @bug 8151499 8153734 * @bug 8151499 8153734
* @modules java.base/jdk.internal.vm.annotation * @modules java.base/jdk.internal.vm.annotation
* @run main/othervm -XX:+EnableContended -XX:-RestrictContended -Xms128m -Xmx128m -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahRegionSize=8M -XX:ContendedPaddingWidth=8192 gc.TestHumongousReferenceObject * @run main/othervm -XX:+EnableContended -XX:-RestrictContended -Xms128m -Xmx128m -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahRegionSize=8M -XX:ContendedPaddingWidth=8192 gc.TestHumongousReferenceObject

View file

@ -49,7 +49,7 @@ package gc;
/* /*
* @test TestSystemGCShenandoah * @test TestSystemGCShenandoah
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @summary Runs System.gc() with different flags. * @summary Runs System.gc() with different flags.
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC gc.TestSystemGC * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC gc.TestSystemGC
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+ExplicitGCInvokesConcurrent gc.TestSystemGC * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+ExplicitGCInvokesConcurrent gc.TestSystemGC

View file

@ -51,8 +51,7 @@ package gc.arguments;
/** /**
* @test TestAlignmentToUseLargePagesShenandoah * @test TestAlignmentToUseLargePagesShenandoah
* @bug 8024396 * @bug 8024396
* @comment Graal does not support Shenandoah * @requires vm.gc.Shenandoah
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @run main/othervm -Xms71M -Xmx91M -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+UseLargePages gc.arguments.TestAlignmentToUseLargePages * @run main/othervm -Xms71M -Xmx91M -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+UseLargePages gc.arguments.TestAlignmentToUseLargePages
* @run main/othervm -Xms71M -Xmx91M -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:-UseLargePages gc.arguments.TestAlignmentToUseLargePages * @run main/othervm -Xms71M -Xmx91M -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:-UseLargePages gc.arguments.TestAlignmentToUseLargePages
*/ */

View file

@ -68,8 +68,7 @@ package gc.arguments;
/* /*
* @test TestUseCompressedOopsErgoShenandoah * @test TestUseCompressedOopsErgoShenandoah
* @bug 8010722 * @bug 8010722
* @comment Graal does not support Shenandoah * @requires vm.gc.Shenandoah
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @library /test/lib * @library /test/lib
* @library / * @library /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc

View file

@ -77,8 +77,7 @@ package gc.class_unloading;
/* /*
* @test TestClassUnloadingDisabledShenandoah * @test TestClassUnloadingDisabledShenandoah
* @bug 8114823 * @bug 8114823
* @comment Graal does not support Shenandoah * @requires vm.gc.Shenandoah
* @requires vm.gc.Shenandoah & !vm.graal.enabled
* @requires vm.opt.ExplicitGCInvokesConcurrent != true * @requires vm.opt.ExplicitGCInvokesConcurrent != true
* @requires vm.opt.ClassUnloading != true * @requires vm.opt.ClassUnloading != true
* @library /test/lib * @library /test/lib

View file

@ -25,7 +25,7 @@ package gc.epsilon;
/** /**
* @test TestAlignment * @test TestAlignment
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Check Epsilon runs fine with (un)usual alignments * @summary Check Epsilon runs fine with (un)usual alignments
* @bug 8212005 * @bug 8212005
* @run main/othervm -XX:+UnlockExperimentalVMOptions -Xmx128m -XX:+UseEpsilonGC -XX:+UseTLAB gc.epsilon.TestAlignment * @run main/othervm -XX:+UnlockExperimentalVMOptions -Xmx128m -XX:+UseEpsilonGC -XX:+UseTLAB gc.epsilon.TestAlignment

View file

@ -23,7 +23,7 @@
/** /**
* @test TestAlwaysPretouch * @test TestAlwaysPretouch
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Basic sanity test for Epsilon * @summary Basic sanity test for Epsilon
* @run main/othervm -Xms128m -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch * @run main/othervm -Xms128m -Xmx1g -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch
* @run main/othervm -Xms128m -Xmx1g -XX:-AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch * @run main/othervm -Xms128m -Xmx1g -XX:-AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestAlwaysPretouch

View file

@ -25,7 +25,7 @@ package gc.epsilon;
/** /**
* @test TestArraycopyCheckcast * @test TestArraycopyCheckcast
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Epsilon is able to handle checkcasted array copies * @summary Epsilon is able to handle checkcasted array copies
* @library /test/lib * @library /test/lib
* @bug 8215724 * @bug 8215724

View file

@ -26,7 +26,7 @@ package gc.epsilon;
/** /**
* @test TestByteArrays * @test TestByteArrays
* @key randomness * @key randomness
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Epsilon is able to allocate arrays, and does not corrupt their state * @summary Epsilon is able to allocate arrays, and does not corrupt their state
* @library /test/lib * @library /test/lib
* *

View file

@ -25,7 +25,7 @@ package gc.epsilon;
/** /**
* @test TestClasses * @test TestClasses
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Epsilon is able to allocate a lot of classes * @summary Epsilon is able to allocate a lot of classes
* *
* @modules java.base/jdk.internal.org.objectweb.asm * @modules java.base/jdk.internal.org.objectweb.asm

View file

@ -25,7 +25,7 @@ package gc.epsilon;
/** /**
* @test TestDieDefault * @test TestDieDefault
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Epsilon GC should die on heap exhaustion * @summary Epsilon GC should die on heap exhaustion
* @library /test/lib * @library /test/lib
* @run driver gc.epsilon.TestDieDefault * @run driver gc.epsilon.TestDieDefault

View file

@ -25,7 +25,7 @@ package gc.epsilon;
/** /**
* @test TestDieWithHeapDump * @test TestDieWithHeapDump
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Epsilon GC should die on heap exhaustion with error handler attached * @summary Epsilon GC should die on heap exhaustion with error handler attached
* @library /test/lib * @library /test/lib
* @run driver gc.epsilon.TestDieWithHeapDump * @run driver gc.epsilon.TestDieWithHeapDump

View file

@ -25,7 +25,7 @@ package gc.epsilon;
/** /**
* @test TestDieWithOnError * @test TestDieWithOnError
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Epsilon GC should die on heap exhaustion with error handler attached * @summary Epsilon GC should die on heap exhaustion with error handler attached
* @library /test/lib * @library /test/lib
* @run driver gc.epsilon.TestDieWithOnError * @run driver gc.epsilon.TestDieWithOnError

View file

@ -26,7 +26,7 @@ package gc.epsilon;
/** /**
* @test TestElasticTLAB * @test TestElasticTLAB
* @key randomness * @key randomness
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Epsilon is able to work with/without elastic TLABs * @summary Epsilon is able to work with/without elastic TLABs
* @library /test/lib * @library /test/lib
* *

View file

@ -26,7 +26,7 @@ package gc.epsilon;
/** /**
* @test TestElasticTLABDecay * @test TestElasticTLABDecay
* @key randomness * @key randomness
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Epsilon is able to work with/without elastic TLABs * @summary Epsilon is able to work with/without elastic TLABs
* @library /test/lib * @library /test/lib
* *

View file

@ -25,7 +25,7 @@ package gc.epsilon;
/** /**
* @test TestAlwaysPretouch * @test TestAlwaysPretouch
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Basic sanity test for Epsilon * @summary Basic sanity test for Epsilon
* @library /test/lib * @library /test/lib
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestEpsilonEnabled * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestEpsilonEnabled

View file

@ -25,7 +25,7 @@ package gc.epsilon;
/** /**
* @test TestHelloWorld * @test TestHelloWorld
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Basic sanity test for Epsilon * @summary Basic sanity test for Epsilon
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestHelloWorld * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestHelloWorld
*/ */

View file

@ -26,7 +26,7 @@ package gc.epsilon;
/** /**
* @test TestLogTrace * @test TestLogTrace
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Test that tracing does not crash Epsilon * @summary Test that tracing does not crash Epsilon
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc*=trace gc.epsilon.TestLogTrace * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc*=trace gc.epsilon.TestLogTrace
*/ */

View file

@ -25,7 +25,7 @@ package gc.epsilon;
/** /**
* @test TestManyThreads * @test TestManyThreads
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Test allocations from many threads * @summary Test allocations from many threads
* *
* @run main/othervm -Xmx128m -Xss512k -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestManyThreads * @run main/othervm -Xmx128m -Xss512k -XX:-UseTLAB -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC gc.epsilon.TestManyThreads

View file

@ -25,7 +25,7 @@ package gc.epsilon;
/** /**
* @test TestMaxTLAB * @test TestMaxTLAB
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Check EpsilonMaxTLAB options * @summary Check EpsilonMaxTLAB options
* @bug 8212177 * @bug 8212177
* *

View file

@ -26,7 +26,7 @@ package gc.epsilon;
/** /**
* @test TestMemoryMXBeans * @test TestMemoryMXBeans
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Test JMX memory beans * @summary Test JMX memory beans
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management

View file

@ -26,7 +26,7 @@ package gc.epsilon;
/** /**
* @test TestMemoryPools * @test TestMemoryPools
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Test JMX memory pools * @summary Test JMX memory pools
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management

View file

@ -26,7 +26,7 @@ package gc.epsilon;
/** /**
* @test TestObjects * @test TestObjects
* @key randomness * @key randomness
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Epsilon is able to allocate objects, and does not corrupt their state * @summary Epsilon is able to allocate objects, and does not corrupt their state
* @library /test/lib * @library /test/lib
* *

View file

@ -25,7 +25,7 @@ package gc.epsilon;
/** /**
* @test TestPrintSteps * @test TestPrintSteps
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Tests -XX:EpsilonPrintHeapSteps works * @summary Tests -XX:EpsilonPrintHeapSteps works
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonPrintHeapSteps=0 gc.epsilon.TestPrintHeapSteps * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonPrintHeapSteps=0 gc.epsilon.TestPrintHeapSteps
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonPrintHeapSteps=1 gc.epsilon.TestPrintHeapSteps * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonPrintHeapSteps=1 gc.epsilon.TestPrintHeapSteps

View file

@ -26,7 +26,7 @@ package gc.epsilon;
/** /**
* @test TestRefArrays * @test TestRefArrays
* @key randomness * @key randomness
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Epsilon is able to allocate arrays, and does not corrupt their state * @summary Epsilon is able to allocate arrays, and does not corrupt their state
* @library /test/lib * @library /test/lib
* *

View file

@ -25,7 +25,7 @@ package gc.epsilon;
/** /**
* @test TestUpdateCountersSteps * @test TestUpdateCountersSteps
* @requires vm.gc.Epsilon & !vm.graal.enabled * @requires vm.gc.Epsilon
* @summary Test EpsilonUpdateCountersStep works * @summary Test EpsilonUpdateCountersStep works
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonUpdateCountersStep=1 gc.epsilon.TestUpdateCountersSteps * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonUpdateCountersStep=1 gc.epsilon.TestUpdateCountersSteps
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonUpdateCountersStep=10 gc.epsilon.TestUpdateCountersSteps * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseEpsilonGC -Xlog:gc -XX:EpsilonUpdateCountersStep=10 gc.epsilon.TestUpdateCountersSteps

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -81,7 +81,7 @@ import gc.testlibrary.PerfCounters;
/* @test TestMetaspacePerfCountersShenandoah /* @test TestMetaspacePerfCountersShenandoah
* @bug 8014659 * @bug 8014659
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib / * @library /test/lib /
* @summary Tests that performance counters for metaspace and compressed class * @summary Tests that performance counters for metaspace and compressed class
* space exists and works. * space exists and works.

View file

@ -26,7 +26,7 @@
* @test TestAllocHumongousFragment * @test TestAllocHumongousFragment
* @summary Make sure Shenandoah can recover from humongous allocation fragmentation * @summary Make sure Shenandoah can recover from humongous allocation fragmentation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -Xmx1g -Xms1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahTargetNumRegions=2048 * @run main/othervm -Xmx1g -Xms1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahTargetNumRegions=2048
@ -54,7 +54,7 @@
* @test TestAllocHumongousFragment * @test TestAllocHumongousFragment
* @summary Make sure Shenandoah can recover from humongous allocation fragmentation * @summary Make sure Shenandoah can recover from humongous allocation fragmentation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -Xmx1g -Xms1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahTargetNumRegions=2048 * @run main/othervm -Xmx1g -Xms1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahTargetNumRegions=2048
@ -123,7 +123,7 @@
* @test TestAllocHumongousFragment * @test TestAllocHumongousFragment
* @summary Make sure Shenandoah can recover from humongous allocation fragmentation * @summary Make sure Shenandoah can recover from humongous allocation fragmentation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahTargetNumRegions=2048 * @run main/othervm -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g -XX:ShenandoahTargetNumRegions=2048

View file

@ -26,7 +26,7 @@
* @test TestAllocIntArrays * @test TestAllocIntArrays
* @summary Acceptance tests: collector can withstand allocation * @summary Acceptance tests: collector can withstand allocation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g
@ -54,7 +54,7 @@
* @test TestAllocIntArrays * @test TestAllocIntArrays
* @summary Acceptance tests: collector can withstand allocation * @summary Acceptance tests: collector can withstand allocation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g
@ -140,7 +140,7 @@
* @test TestAllocIntArrays * @test TestAllocIntArrays
* @summary Acceptance tests: collector can withstand allocation * @summary Acceptance tests: collector can withstand allocation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g

View file

@ -26,7 +26,7 @@
* @test TestAllocObjectArrays * @test TestAllocObjectArrays
* @summary Acceptance tests: collector can withstand allocation * @summary Acceptance tests: collector can withstand allocation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g
@ -54,7 +54,7 @@
* @test TestAllocObjectArrays * @test TestAllocObjectArrays
* @summary Acceptance tests: collector can withstand allocation * @summary Acceptance tests: collector can withstand allocation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g
@ -140,7 +140,7 @@
* @test TestAllocObjectArrays * @test TestAllocObjectArrays
* @summary Acceptance tests: collector can withstand allocation * @summary Acceptance tests: collector can withstand allocation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g

View file

@ -25,7 +25,7 @@
/* /*
* @test TestAllocObjects * @test TestAllocObjects
* @summary Acceptance tests: collector can withstand allocation * @summary Acceptance tests: collector can withstand allocation
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
@ -51,7 +51,7 @@
/* /*
* @test TestAllocObjects * @test TestAllocObjects
* @summary Acceptance tests: collector can withstand allocation * @summary Acceptance tests: collector can withstand allocation
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
@ -137,7 +137,7 @@
/* /*
* @test TestAllocObjects * @test TestAllocObjects
* @summary Acceptance tests: collector can withstand allocation * @summary Acceptance tests: collector can withstand allocation
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive

View file

@ -24,7 +24,7 @@
/* /*
* @test TestArrayCopyCheckCast * @test TestArrayCopyCheckCast
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:TieredStopAtLevel=0 -Xmx16m TestArrayCopyCheckCast * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:TieredStopAtLevel=0 -Xmx16m TestArrayCopyCheckCast
*/ */

View file

@ -28,7 +28,7 @@ import jdk.test.lib.Utils;
/* /*
* @test TestArrayCopyStress * @test TestArrayCopyStress
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:TieredStopAtLevel=0 -Xmx16m TestArrayCopyStress * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:TieredStopAtLevel=0 -Xmx16m TestArrayCopyStress

View file

@ -26,7 +26,7 @@
* @test TestElasticTLAB * @test TestElasticTLAB
* @key randomness * @key randomness
* @summary Test that Shenandoah is able to work with elastic TLABs * @summary Test that Shenandoah is able to work with elastic TLABs
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -XX:-UseTLAB -XX:-ShenandoahElasticTLAB -XX:+ShenandoahVerify TestElasticTLAB * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -XX:-UseTLAB -XX:-ShenandoahElasticTLAB -XX:+ShenandoahVerify TestElasticTLAB

View file

@ -25,7 +25,7 @@
/* /*
* @test TestEvilSyncBug * @test TestEvilSyncBug
* @summary Tests for crash/assert when attaching init thread during shutdown * @summary Tests for crash/assert when attaching init thread during shutdown
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management

View file

@ -25,7 +25,7 @@
/** /**
* @test TestGCThreadGroups * @test TestGCThreadGroups
* @summary Test Shenandoah GC uses concurrent/parallel threads correctly * @summary Test Shenandoah GC uses concurrent/parallel threads correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
@ -37,7 +37,7 @@
/** /**
* @test TestGCThreadGroups * @test TestGCThreadGroups
* @summary Test Shenandoah GC uses concurrent/parallel threads correctly * @summary Test Shenandoah GC uses concurrent/parallel threads correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC * -XX:+UseShenandoahGC
@ -79,7 +79,7 @@
/** /**
* @test TestGCThreadGroups * @test TestGCThreadGroups
* @summary Test Shenandoah GC uses concurrent/parallel threads correctly * @summary Test Shenandoah GC uses concurrent/parallel threads correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu

View file

@ -26,7 +26,7 @@
* @test TestHeapUncommit * @test TestHeapUncommit
* @summary Acceptance tests: collector can withstand allocation * @summary Acceptance tests: collector can withstand allocation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0 * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
@ -54,7 +54,7 @@
* @test TestHeapUncommit * @test TestHeapUncommit
* @summary Acceptance tests: collector can withstand allocation * @summary Acceptance tests: collector can withstand allocation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0 * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
@ -88,7 +88,7 @@
* @test TestHeapUncommit * @test TestHeapUncommit
* @summary Acceptance tests: collector can withstand allocation * @summary Acceptance tests: collector can withstand allocation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0 * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
@ -108,7 +108,8 @@
/* /*
* @test TestHeapUncommit * @test TestHeapUncommit
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64") * @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0 -XX:+UseLargePages * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0 -XX:+UseLargePages

View file

@ -25,7 +25,7 @@
/* /*
* @test TestHumongousThreshold * @test TestHumongousThreshold
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g
@ -71,7 +71,8 @@
/* /*
* @test TestHumongousThreshold * @test TestHumongousThreshold
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64") * @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g

View file

@ -26,7 +26,8 @@
* @test TestLargeObjectAlignment * @test TestLargeObjectAlignment
* @summary Shenandoah crashes with -XX:ObjectAlignmentInBytes=16 * @summary Shenandoah crashes with -XX:ObjectAlignmentInBytes=16
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64") * @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ObjectAlignmentInBytes=16 -Xint TestLargeObjectAlignment * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ObjectAlignmentInBytes=16 -Xint TestLargeObjectAlignment

View file

@ -24,7 +24,7 @@
/* /*
* @test TestLotsOfCycles * @test TestLotsOfCycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
@ -41,7 +41,7 @@
/* /*
* @test TestLotsOfCycles * @test TestLotsOfCycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
@ -93,7 +93,7 @@
/* /*
* @test TestLotsOfCycles * @test TestLotsOfCycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive

View file

@ -26,7 +26,7 @@
* @test TestObjIterWithHeapDump * @test TestObjIterWithHeapDump
* @summary Test heap dump triggered heap object iteration * @summary Test heap dump triggered heap object iteration
* @bug 8225014 * @bug 8225014
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @run driver TestObjItrWithHeapDump * @run driver TestObjItrWithHeapDump
*/ */

View file

@ -25,7 +25,7 @@
/* /*
* @test TestParallelRefprocSanity * @test TestParallelRefprocSanity
* @summary Test that reference processing works with both parallel and non-parallel variants. * @summary Test that reference processing works with both parallel and non-parallel variants.
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -Xms1g TestParallelRefprocSanity * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -Xms1g TestParallelRefprocSanity
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -Xms1g -XX:-ParallelRefProcEnabled TestParallelRefprocSanity * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -Xms1g -XX:-ParallelRefProcEnabled TestParallelRefprocSanity

View file

@ -25,7 +25,7 @@
/* /*
* @test TestPeriodicGC * @test TestPeriodicGC
* @summary Test that periodic GC is working * @summary Test that periodic GC is working
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @run driver TestPeriodicGC * @run driver TestPeriodicGC
*/ */

View file

@ -25,7 +25,7 @@
/* /*
* @test TestRefprocSanity * @test TestRefprocSanity
* @summary Test that null references/referents work fine * @summary Test that null references/referents work fine
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC * -XX:+UseShenandoahGC
@ -44,7 +44,7 @@
/* /*
* @test TestRefprocSanity * @test TestRefprocSanity
* @summary Test that null references/referents work fine * @summary Test that null references/referents work fine
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu

View file

@ -24,7 +24,7 @@
/* /*
* @test TestRegionSampling * @test TestRegionSampling
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahRegionSampling * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahRegionSampling
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
@ -39,7 +39,7 @@
/* /*
* @test TestRegionSampling * @test TestRegionSampling
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahRegionSampling * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahRegionSampling
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
@ -75,7 +75,7 @@
/* /*
* @test TestRegionSampling * @test TestRegionSampling
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahRegionSampling * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahRegionSampling
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive

View file

@ -25,7 +25,7 @@
/* /*
* @test TestRetainObjects * @test TestRetainObjects
* @summary Acceptance tests: collector can deal with retained objects * @summary Acceptance tests: collector can deal with retained objects
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
@ -51,7 +51,7 @@
/* /*
* @test TestRetainObjects * @test TestRetainObjects
* @summary Acceptance tests: collector can deal with retained objects * @summary Acceptance tests: collector can deal with retained objects
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
@ -117,7 +117,7 @@
/* /*
* @test TestRetainObjects * @test TestRetainObjects
* @summary Acceptance tests: collector can deal with retained objects * @summary Acceptance tests: collector can deal with retained objects
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive

View file

@ -26,7 +26,7 @@
* @test TestSieveObjects * @test TestSieveObjects
* @summary Acceptance tests: collector can deal with retained objects * @summary Acceptance tests: collector can deal with retained objects
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
@ -54,7 +54,7 @@
* @test TestSieveObjects * @test TestSieveObjects
* @summary Acceptance tests: collector can deal with retained objects * @summary Acceptance tests: collector can deal with retained objects
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
@ -131,7 +131,7 @@
* @test TestSieveObjects * @test TestSieveObjects
* @summary Acceptance tests: collector can deal with retained objects * @summary Acceptance tests: collector can deal with retained objects
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions

View file

@ -24,7 +24,7 @@
/* /*
* @test TestSmallHeap * @test TestSmallHeap
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC TestSmallHeap * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC TestSmallHeap
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx64m TestSmallHeap * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx64m TestSmallHeap

View file

@ -26,7 +26,7 @@
* @test TestStringDedup * @test TestStringDedup
* @summary Test Shenandoah string deduplication implementation * @summary Test Shenandoah string deduplication implementation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc:open * @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open * @modules java.base/java.lang:open
@ -47,7 +47,7 @@
* @test TestStringDedup * @test TestStringDedup
* @summary Test Shenandoah string deduplication implementation * @summary Test Shenandoah string deduplication implementation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc:open * @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open * @modules java.base/java.lang:open
@ -70,7 +70,7 @@
* @test TestStringDedup * @test TestStringDedup
* @summary Test Shenandoah string deduplication implementation * @summary Test Shenandoah string deduplication implementation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc:open * @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open * @modules java.base/java.lang:open

View file

@ -26,7 +26,7 @@
* @test TestStringDedupStress * @test TestStringDedupStress
* @summary Test Shenandoah string deduplication implementation * @summary Test Shenandoah string deduplication implementation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc:open * @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open * @modules java.base/java.lang:open
@ -47,7 +47,7 @@
* @test TestStringDedupStress * @test TestStringDedupStress
* @summary Test Shenandoah string deduplication implementation * @summary Test Shenandoah string deduplication implementation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc:open * @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open * @modules java.base/java.lang:open
@ -78,7 +78,7 @@
* @test TestStringDedupStress * @test TestStringDedupStress
* @summary Test Shenandoah string deduplication implementation * @summary Test Shenandoah string deduplication implementation
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc:open * @modules java.base/jdk.internal.misc:open
* @modules java.base/java.lang:open * @modules java.base/java.lang:open

View file

@ -25,7 +25,7 @@
/* /*
* @test TestStringInternCleanup * @test TestStringInternCleanup
* @summary Check that Shenandoah cleans up interned strings * @summary Check that Shenandoah cleans up interned strings
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx64m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ClassUnloadingWithConcurrentMark * @run main/othervm -Xmx64m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ClassUnloadingWithConcurrentMark
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
@ -51,7 +51,7 @@
/* /*
* @test TestStringInternCleanup * @test TestStringInternCleanup
* @summary Check that Shenandoah cleans up interned strings * @summary Check that Shenandoah cleans up interned strings
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx64m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ClassUnloadingWithConcurrentMark * @run main/othervm -Xmx64m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ClassUnloadingWithConcurrentMark
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
@ -78,7 +78,7 @@
/* /*
* @test TestStringInternCleanup * @test TestStringInternCleanup
* @summary Check that Shenandoah cleans up interned strings * @summary Check that Shenandoah cleans up interned strings
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx64m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ClassUnloadingWithConcurrentMark * @run main/othervm -Xmx64m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ClassUnloadingWithConcurrentMark
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu

View file

@ -25,7 +25,7 @@
/* /*
* @test TestVerifyJCStress * @test TestVerifyJCStress
* @summary Tests that we pass at least one jcstress-like test with all verification turned on * @summary Tests that we pass at least one jcstress-like test with all verification turned on
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* *
@ -43,7 +43,7 @@
/* /*
* @test TestVerifyJCStress * @test TestVerifyJCStress
* @summary Tests that we pass at least one jcstress-like test with all verification turned on * @summary Tests that we pass at least one jcstress-like test with all verification turned on
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* *
@ -61,7 +61,7 @@
/* /*
* @test TestVerifyJCStress * @test TestVerifyJCStress
* @summary Tests that we pass at least one jcstress-like test with all verification turned on * @summary Tests that we pass at least one jcstress-like test with all verification turned on
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* *

View file

@ -24,7 +24,7 @@
/* /*
* @test TestVerifyLevels * @test TestVerifyLevels
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -Xmx128m -XX:+ShenandoahVerify -XX:ShenandoahVerifyLevel=0 TestVerifyLevels * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -Xmx128m -XX:+ShenandoahVerify -XX:ShenandoahVerifyLevel=0 TestVerifyLevels
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -Xmx128m -XX:+ShenandoahVerify -XX:ShenandoahVerifyLevel=1 TestVerifyLevels * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -Xmx128m -XX:+ShenandoahVerify -XX:ShenandoahVerifyLevel=1 TestVerifyLevels

View file

@ -25,7 +25,7 @@
/* /*
* @test TestWithLogLevel * @test TestWithLogLevel
* @summary Test Shenandoah with different log levels * @summary Test Shenandoah with different log levels
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xms256M -Xmx1G -Xlog:gc*=error TestWithLogLevel * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xms256M -Xmx1G -Xlog:gc*=error TestWithLogLevel
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xms256M -Xmx1G -Xlog:gc*=warning TestWithLogLevel * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xms256M -Xmx1G -Xlog:gc*=warning TestWithLogLevel

View file

@ -24,7 +24,7 @@
/* /*
* @test TestWrongArrayMember * @test TestWrongArrayMember
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx128m -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC TestWrongArrayMember * @run main/othervm -Xmx128m -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC TestWrongArrayMember
* @run main/othervm -Xmx128m -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu TestWrongArrayMember * @run main/othervm -Xmx128m -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu TestWrongArrayMember

View file

@ -26,7 +26,7 @@
* @bug 8237837 8244721 * @bug 8237837 8244721
* @summary Shenandoah: assert(mem == __null) failed: only one safepoint * @summary Shenandoah: assert(mem == __null) failed: only one safepoint
* @requires vm.flavor == "server" * @requires vm.flavor == "server"
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xcomp -XX:CompileOnly=BarrierInInfiniteLoop::test1 * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xcomp -XX:CompileOnly=BarrierInInfiniteLoop::test1
* -XX:CompileOnly=BarrierInInfiniteLoop::test2 -XX:CompileOnly=BarrierInInfiniteLoop::test3 -XX:CompileCommand=quiet BarrierInInfiniteLoop * -XX:CompileOnly=BarrierInInfiniteLoop::test2 -XX:CompileOnly=BarrierInInfiniteLoop::test3 -XX:CompileCommand=quiet BarrierInInfiniteLoop

View file

@ -25,7 +25,7 @@
* @test * @test
* @bug 8231405 * @bug 8231405
* @summary barrier expansion breaks if barrier is right after call to rethrow stub * @summary barrier expansion breaks if barrier is right after call to rethrow stub
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -XX:CompileOnly=CallMultipleCatchProjs::test -Xcomp -Xverify:none -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC CallMultipleCatchProjs * @run main/othervm -XX:CompileOnly=CallMultipleCatchProjs::test -Xcomp -Xverify:none -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC CallMultipleCatchProjs
* *

View file

@ -24,7 +24,7 @@
/** /**
* @test 8238385 * @test 8238385
* @summary CTW: C2 (Shenandoah) compilation fails with "Range check dependent CastII node was not removed" * @summary CTW: C2 (Shenandoah) compilation fails with "Range check dependent CastII node was not removed"
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc:+open * @modules java.base/jdk.internal.misc:+open
* *
* @run main/othervm -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -XX:-TieredCompilation -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC * @run main/othervm -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -XX:-TieredCompilation -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC

View file

@ -26,7 +26,7 @@
* @bug 8237007 * @bug 8237007
* @summary Shenandoah: assert(_base == Tuple) failure during C2 compilation * @summary Shenandoah: assert(_base == Tuple) failure during C2 compilation
* @requires vm.flavor == "server" * @requires vm.flavor == "server"
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-BackgroundCompilation -XX:+UseShenandoahGC LRBRightAfterMemBar * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:-BackgroundCompilation -XX:+UseShenandoahGC LRBRightAfterMemBar
* *

View file

@ -24,7 +24,7 @@
/* @test TestC1ArrayCopyNPE /* @test TestC1ArrayCopyNPE
* @summary test C1 arraycopy intrinsic * @summary test C1 arraycopy intrinsic
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @run main/othervm -XX:TieredStopAtLevel=1 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive TestC1ArrayCopyNPE * @run main/othervm -XX:TieredStopAtLevel=1 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive TestC1ArrayCopyNPE
*/ */

View file

@ -25,7 +25,7 @@
/* @test TestC1VectorizedMismatch /* @test TestC1VectorizedMismatch
* @summary test C1 vectorized mismatch intrinsic * @summary test C1 vectorized mismatch intrinsic
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm -XX:TieredStopAtLevel=1 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive TestC1VectorizedMismatch * @run main/othervm -XX:TieredStopAtLevel=1 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive TestC1VectorizedMismatch

View file

@ -24,7 +24,7 @@
/* /*
* @test TestClone * @test TestClone
* @summary Test clone barriers work correctly * @summary Test clone barriers work correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g
* -XX:+UseShenandoahGC * -XX:+UseShenandoahGC
@ -50,7 +50,7 @@
/* /*
* @test TestClone * @test TestClone
* @summary Test clone barriers work correctly * @summary Test clone barriers work correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g
* -XX:+UseShenandoahGC * -XX:+UseShenandoahGC
@ -81,7 +81,7 @@
/* /*
* @test TestClone * @test TestClone
* @summary Test clone barriers work correctly * @summary Test clone barriers work correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
@ -107,7 +107,8 @@
/* /*
* @test TestClone * @test TestClone
* @summary Test clone barriers work correctly * @summary Test clone barriers work correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64") * @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
* *
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g
* -XX:-UseCompressedOops * -XX:-UseCompressedOops
@ -138,7 +139,8 @@
/* /*
* @test TestClone * @test TestClone
* @summary Test clone barriers work correctly * @summary Test clone barriers work correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64") * @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
* *
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g
* -XX:-UseCompressedOops * -XX:-UseCompressedOops
@ -174,7 +176,8 @@
/* /*
* @test TestClone * @test TestClone
* @summary Test clone barriers work correctly * @summary Test clone barriers work correctly
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64") * @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
* *
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xms1g -Xmx1g
* -XX:-UseCompressedOops * -XX:-UseCompressedOops

View file

@ -24,7 +24,7 @@
/** /**
* @test TestExpandedWBLostNullCheckDep * @test TestExpandedWBLostNullCheckDep
* @summary Logic that moves a null check in the expanded barrier may cause a memory access that doesn't depend on the barrier to bypass the null check * @summary Logic that moves a null check in the expanded barrier may cause a memory access that doesn't depend on the barrier to bypass the null check
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @requires vm.flavor == "server" * @requires vm.flavor == "server"
* @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:-TieredCompilation * @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:-TieredCompilation
* -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC * -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC

View file

@ -24,7 +24,7 @@
/** /**
* @test TestMaybeNullUnsafeAccess * @test TestMaybeNullUnsafeAccess
* @summary cast before unsafe access moved in dominating null check null path causes crash * @summary cast before unsafe access moved in dominating null check null path causes crash
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc:+open * @modules java.base/jdk.internal.misc:+open
* *
* @run main/othervm -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -XX:-TieredCompilation * @run main/othervm -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -XX:-TieredCompilation

View file

@ -24,7 +24,8 @@
/** /**
* @test TestNullCheck * @test TestNullCheck
* @summary implicit null check on brooks pointer must not cause crash * @summary implicit null check on brooks pointer must not cause crash
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64") * @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
* @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:-TieredCompilation * @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:-TieredCompilation
* -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC * -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC
* -Xmx4G -XX:HeapBaseMinAddress=0x800000000 TestNullCheck * -Xmx4G -XX:HeapBaseMinAddress=0x800000000 TestNullCheck

View file

@ -29,7 +29,7 @@
/* /*
* @test TestReferenceCAS * @test TestReferenceCAS
* @summary Shenandoah reference CAS test * @summary Shenandoah reference CAS test
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc:+open * @modules java.base/jdk.internal.misc:+open
* *
* @run main/othervm -Diters=20000 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive -XX:+UseShenandoahGC TestReferenceCAS * @run main/othervm -Diters=20000 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive -XX:+UseShenandoahGC TestReferenceCAS
@ -42,7 +42,8 @@
/* /*
* @test TestReferenceCAS * @test TestReferenceCAS
* @summary Shenandoah reference CAS test * @summary Shenandoah reference CAS test
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64") * @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
* @modules java.base/jdk.internal.misc:+open * @modules java.base/jdk.internal.misc:+open
* *
* @run main/othervm -Diters=20000 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive -XX:+UseShenandoahGC -XX:-UseCompressedOops TestReferenceCAS * @run main/othervm -Diters=20000 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=aggressive -XX:+UseShenandoahGC -XX:-UseCompressedOops TestReferenceCAS

View file

@ -26,7 +26,7 @@
* @bug 8244663 * @bug 8244663
* @summary Shenandoah: C2 assertion fails in Matcher::collect_null_checks * @summary Shenandoah: C2 assertion fails in Matcher::collect_null_checks
* @requires vm.flavor == "server" * @requires vm.flavor == "server"
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:-TieredCompilation -XX:-BackgroundCompilation -XX:-UseOnStackReplacement * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:-TieredCompilation -XX:-BackgroundCompilation -XX:-UseOnStackReplacement
* -XX:CompileCommand=dontinline,TestShenandoahCmpPAfterCall::not_inlined TestShenandoahCmpPAfterCall * -XX:CompileCommand=dontinline,TestShenandoahCmpPAfterCall::not_inlined TestShenandoahCmpPAfterCall

View file

@ -26,7 +26,7 @@
* @bug 8247824 * @bug 8247824
* @summary CTW: C2 (Shenandoah) compilation fails with SEGV in SBC2Support::pin_and_expand * @summary CTW: C2 (Shenandoah) compilation fails with SEGV in SBC2Support::pin_and_expand
* @requires vm.flavor == "server" * @requires vm.flavor == "server"
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -XX:-BackgroundCompilation -XX:+UseShenandoahGC -XX:LoopMaxUnroll=0 TestShenandoahLRBInOuterStripMinedLoop * @run main/othervm -XX:-BackgroundCompilation -XX:+UseShenandoahGC -XX:LoopMaxUnroll=0 TestShenandoahLRBInOuterStripMinedLoop
* *

View file

@ -24,7 +24,7 @@
/** /**
* @test TestUnsafeOffheapSwap * @test TestUnsafeOffheapSwap
* @summary Miscompilation in Unsafe off-heap swap routines * @summary Miscompilation in Unsafe off-heap swap routines
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc:+open * @modules java.base/jdk.internal.misc:+open
* *
* @run main/othervm -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -XX:-TieredCompilation * @run main/othervm -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -XX:-TieredCompilation

View file

@ -24,7 +24,7 @@
/** /**
* @test TestWriteBarrierClearControl * @test TestWriteBarrierClearControl
* @summary Clearing control during final graph reshape causes memory barrier to loose dependency on null check * @summary Clearing control during final graph reshape causes memory barrier to loose dependency on null check
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @requires vm.flavor == "server" * @requires vm.flavor == "server"
* @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:-TieredCompilation * @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:-TieredCompilation
* -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC * -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC

View file

@ -25,7 +25,7 @@
/* @test TestJNICritical /* @test TestJNICritical
* @summary test JNI critical arrays support in Shenandoah * @summary test JNI critical arrays support in Shenandoah
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+ShenandoahVerify TestJNICritical * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+ShenandoahVerify TestJNICritical

View file

@ -24,7 +24,7 @@
/* @test TestJNIGlobalRefs /* @test TestJNIGlobalRefs
* @summary Test JNI Global Refs with Shenandoah * @summary Test JNI Global Refs with Shenandoah
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm/native -Xmx1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm/native -Xmx1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
@ -34,7 +34,7 @@
/* @test TestJNIGlobalRefs /* @test TestJNIGlobalRefs
* @summary Test JNI Global Refs with Shenandoah * @summary Test JNI Global Refs with Shenandoah
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm/native -Xmx1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm/native -Xmx1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive

View file

@ -25,7 +25,7 @@
/* @test TestPinnedGarbage /* @test TestPinnedGarbage
* @summary Test that garbage in the pinned region does not crash VM * @summary Test that garbage in the pinned region does not crash VM
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx512m * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx512m
@ -42,7 +42,7 @@
/* @test TestPinnedGarbage /* @test TestPinnedGarbage
* @summary Test that garbage in the pinned region does not crash VM * @summary Test that garbage in the pinned region does not crash VM
* @key randomness * @key randomness
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* *
* @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx512m * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx512m

View file

@ -25,7 +25,7 @@
/** /**
* @test TestHeapDump * @test TestHeapDump
* @summary Tests JVMTI heap dumps * @summary Tests JVMTI heap dumps
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @compile TestHeapDump.java * @compile TestHeapDump.java
* @run main/othervm/native/timeout=300 -agentlib:TestHeapDump -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx128m -XX:ShenandoahGCHeuristics=aggressive TestHeapDump * @run main/othervm/native/timeout=300 -agentlib:TestHeapDump -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx128m -XX:ShenandoahGCHeuristics=aggressive TestHeapDump
* *
@ -34,7 +34,8 @@
/** /**
* @test TestHeapDump * @test TestHeapDump
* @summary Tests JVMTI heap dumps * @summary Tests JVMTI heap dumps
* @requires vm.gc.Shenandoah & !vm.graal.enabled & (vm.bits == "64") * @requires vm.gc.Shenandoah
* @requires vm.bits == "64"
* @compile TestHeapDump.java * @compile TestHeapDump.java
* @run main/othervm/native/timeout=300 -agentlib:TestHeapDump -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx128m -XX:ShenandoahGCHeuristics=aggressive -XX:-UseCompressedOops TestHeapDump * @run main/othervm/native/timeout=300 -agentlib:TestHeapDump -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx128m -XX:ShenandoahGCHeuristics=aggressive -XX:-UseCompressedOops TestHeapDump
*/ */
@ -42,7 +43,7 @@
/** /**
* @test TestHeapDump * @test TestHeapDump
* @summary Tests JVMTI heap dumps * @summary Tests JVMTI heap dumps
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @compile TestHeapDump.java * @compile TestHeapDump.java
* @run main/othervm/native/timeout=300 -agentlib:TestHeapDump -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx128m -XX:ShenandoahGCHeuristics=aggressive -XX:+UseStringDeduplication TestHeapDump * @run main/othervm/native/timeout=300 -agentlib:TestHeapDump -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx128m -XX:ShenandoahGCHeuristics=aggressive -XX:+UseStringDeduplication TestHeapDump
*/ */

View file

@ -25,7 +25,7 @@
/* /*
* @test TestChurnNotifications * @test TestChurnNotifications
* @summary Check that MX notifications are reported for all cycles * @summary Check that MX notifications are reported for all cycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
@ -41,7 +41,7 @@
/* /*
* @test TestChurnNotifications * @test TestChurnNotifications
* @summary Check that MX notifications are reported for all cycles * @summary Check that MX notifications are reported for all cycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
@ -85,7 +85,7 @@
/* /*
* @test TestChurnNotifications * @test TestChurnNotifications
* @summary Check that MX notifications are reported for all cycles * @summary Check that MX notifications are reported for all cycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive

View file

@ -25,7 +25,7 @@
/** /**
* @test TestMemoryMXBeans * @test TestMemoryMXBeans
* @summary Test JMX memory beans * @summary Test JMX memory beans
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g TestMemoryMXBeans -1 1024 * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g TestMemoryMXBeans -1 1024

View file

@ -25,7 +25,7 @@
/** /**
* @test TestMemoryPools * @test TestMemoryPools
* @summary Test JMX memory pools * @summary Test JMX memory pools
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -Xms1g TestMemoryPools * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -Xms1g TestMemoryPools

View file

@ -25,7 +25,7 @@
/* /*
* @test TestPauseNotifications * @test TestPauseNotifications
* @summary Check that MX notifications are reported for all cycles * @summary Check that MX notifications are reported for all cycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
@ -41,7 +41,7 @@
/* /*
* @test TestPauseNotifications * @test TestPauseNotifications
* @summary Check that MX notifications are reported for all cycles * @summary Check that MX notifications are reported for all cycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
@ -81,7 +81,7 @@
/* /*
* @test TestPauseNotifications * @test TestPauseNotifications
* @summary Check that MX notifications are reported for all cycles * @summary Check that MX notifications are reported for all cycles
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive

View file

@ -25,7 +25,7 @@
/** /**
* @test TestAllocLargeObj * @test TestAllocLargeObj
* @summary Test allocation of small object to result OOM, but not to crash JVM * @summary Test allocation of small object to result OOM, but not to crash JVM
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @run driver TestAllocLargeObj * @run driver TestAllocLargeObj
*/ */

View file

@ -25,7 +25,7 @@
/** /**
* @test TestAllocLargerThanHeap * @test TestAllocLargerThanHeap
* @summary Test that allocation of the object larger than heap fails predictably * @summary Test that allocation of the object larger than heap fails predictably
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @run driver TestAllocLargerThanHeap * @run driver TestAllocLargerThanHeap
*/ */

View file

@ -25,7 +25,7 @@
/** /**
* @test TestAllocSmallObj * @test TestAllocSmallObj
* @summary Test allocation of small object to result OOM, but not to crash JVM * @summary Test allocation of small object to result OOM, but not to crash JVM
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @run driver TestAllocSmallObj * @run driver TestAllocSmallObj
*/ */

View file

@ -25,7 +25,7 @@
/** /**
* @test TestClassLoaderLeak * @test TestClassLoaderLeak
* @summary Test OOME in due to classloader leak * @summary Test OOME in due to classloader leak
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @run driver TestClassLoaderLeak * @run driver TestClassLoaderLeak
*/ */

View file

@ -25,7 +25,7 @@
/** /**
* @test TestThreadFailure * @test TestThreadFailure
* @summary Test OOME in separate thread is recoverable * @summary Test OOME in separate thread is recoverable
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @run driver TestThreadFailure * @run driver TestThreadFailure
*/ */

View file

@ -25,7 +25,7 @@
/* /*
* @test TestAlwaysPreTouch * @test TestAlwaysPreTouch
* @summary Check that Shenandoah's AlwaysPreTouch does not fire asserts * @summary Check that Shenandoah's AlwaysPreTouch does not fire asserts
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+AlwaysPreTouch -Xmx1g TestAlwaysPreTouch * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+AlwaysPreTouch -Xmx1g TestAlwaysPreTouch
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+AlwaysPreTouch -XX:ConcGCThreads=2 -Xmx1g TestAlwaysPreTouch * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+AlwaysPreTouch -XX:ConcGCThreads=2 -Xmx1g TestAlwaysPreTouch

View file

@ -25,7 +25,7 @@
/* /*
* @test TestArgumentRanges * @test TestArgumentRanges
* @summary Test that Shenandoah arguments are checked for ranges where applicable * @summary Test that Shenandoah arguments are checked for ranges where applicable
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management

View file

@ -25,7 +25,7 @@
/* /*
* @test TestClassUnloadingArguments * @test TestClassUnloadingArguments
* @summary Test that loop mining arguments are sane * @summary Test that loop mining arguments are sane
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @run driver TestClassUnloadingArguments * @run driver TestClassUnloadingArguments
*/ */

View file

@ -23,7 +23,7 @@
*/ */
/* @test TestCodeCacheRootStyles /* @test TestCodeCacheRootStyles
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions
* -XX:+UseShenandoahGC -XX:ShenandoahCodeRootsStyle=0 TestCodeCacheRootStyles * -XX:+UseShenandoahGC -XX:ShenandoahCodeRootsStyle=0 TestCodeCacheRootStyles
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions

View file

@ -26,7 +26,7 @@
* @test TestCriticalControlThreadPriority * @test TestCriticalControlThreadPriority
* @summary Check that ShenandoahCriticalControlThreadPriority works * @summary Check that ShenandoahCriticalControlThreadPriority works
* @bug 8217343 * @bug 8217343
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* *
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:-ShenandoahCriticalControlThreadPriority -Xmx1g TestCriticalControlThreadPriority * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:-ShenandoahCriticalControlThreadPriority -Xmx1g TestCriticalControlThreadPriority
* @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+ShenandoahCriticalControlThreadPriority -Xmx1g TestCriticalControlThreadPriority * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+ShenandoahCriticalControlThreadPriority -Xmx1g TestCriticalControlThreadPriority

View file

@ -26,14 +26,14 @@ import java.lang.management.ManagementFactory;
/* /*
* @test TestEnabled * @test TestEnabled
* @requires vm.gc.Shenandoah & vm.gc == "null" & !vm.graal.enabled * @requires vm.gc.Shenandoah & vm.gc == "null"
* @run main/othervm -Dexpected=false -Xmx64m TestEnabled * @run main/othervm -Dexpected=false -Xmx64m TestEnabled
* @run main/othervm -Dexpected=true -Xmx64m -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC TestEnabled * @run main/othervm -Dexpected=true -Xmx64m -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC TestEnabled
*/ */
/* /*
* @test TestEnabledAlready * @test TestEnabledAlready
* @requires vm.gc.Shenandoah & vm.gc == "Shenandoah" & !vm.graal.enabled * @requires vm.gc.Shenandoah & vm.gc == "Shenandoah"
* @run main/othervm -Dexpected=true -Xmx64m TestEnabled * @run main/othervm -Dexpected=true -Xmx64m TestEnabled
*/ */
public class TestEnabled { public class TestEnabled {

View file

@ -25,7 +25,7 @@
/* /*
* @test TestExplicitGC * @test TestExplicitGC
* @summary Test that Shenandoah reacts to explicit GC flags appropriately * @summary Test that Shenandoah reacts to explicit GC flags appropriately
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management

View file

@ -25,7 +25,7 @@
/* /*
* @test TestExplicitGCNoConcurrent * @test TestExplicitGCNoConcurrent
* @summary Test that Shenandoah reacts to explicit GC flags appropriately * @summary Test that Shenandoah reacts to explicit GC flags appropriately
* @requires vm.gc.Shenandoah & !vm.graal.enabled * @requires vm.gc.Shenandoah
* @library /test/lib * @library /test/lib
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management

Some files were not shown because too many files have changed in this diff Show more