OpenJDK / jigsaw / jake / hotspot
changeset 13391:af8942b1e722
Update tests that attach to current VM
author | alanb |
---|---|
date | Tue, 11 Apr 2017 12:32:24 +0100 |
parents | 842097f877f2 |
children | dfc17fec1a0d |
files | test/compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/RedefineClassTest.java test/runtime/CommandLine/OptionsValidation/TestOptionsWithRangesDynamic.java test/runtime/Metaspace/DefineClass.java |
diffstat | 4 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/test/compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java Tue Apr 11 12:31:53 2017 +0100 +++ b/test/compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java Tue Apr 11 12:32:24 2017 +0100 @@ -32,7 +32,7 @@ * java.management * jdk.attach * - * @run main/othervm compiler.jsr292.RedefineMethodUsedByMultipleMethodHandles + * @run main/othervm -Djdk.attach.allowAttachSelf compiler.jsr292.RedefineMethodUsedByMultipleMethodHandles */ package compiler.jsr292;
--- a/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/RedefineClassTest.java Tue Apr 11 12:31:53 2017 +0100 +++ b/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/RedefineClassTest.java Tue Apr 11 12:32:24 2017 +0100 @@ -29,7 +29,8 @@ * jdk.internal.vm.ci/jdk.vm.ci.runtime * jdk.attach * java.base/jdk.internal.misc - * @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.runtime.test.RedefineClassTest + * @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -Djdk.attach.allowAttachSelf + * jdk.vm.ci.runtime.test.RedefineClassTest */ package jdk.vm.ci.runtime.test;
--- a/test/runtime/CommandLine/OptionsValidation/TestOptionsWithRangesDynamic.java Tue Apr 11 12:31:53 2017 +0100 +++ b/test/runtime/CommandLine/OptionsValidation/TestOptionsWithRangesDynamic.java Tue Apr 11 12:32:24 2017 +0100 @@ -28,7 +28,7 @@ * @modules java.base/jdk.internal.misc * jdk.attach/sun.tools.attach * java.management - * @run main/othervm -XX:MinHeapFreeRatio=0 -XX:MaxHeapFreeRatio=100 TestOptionsWithRangesDynamic + * @run main/othervm -XX:MinHeapFreeRatio=0 -XX:MaxHeapFreeRatio=100 -Djdk.attach.allowAttachSelf TestOptionsWithRangesDynamic */ import java.util.List;
--- a/test/runtime/Metaspace/DefineClass.java Tue Apr 11 12:31:53 2017 +0100 +++ b/test/runtime/Metaspace/DefineClass.java Tue Apr 11 12:32:24 2017 +0100 @@ -41,8 +41,8 @@ * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:-UnsyncloadClass -XX:-AllowParallelDefineClass test.DefineClass defineClassParallel - * @run main/othervm test.DefineClass redefineClass - * @run main/othervm test.DefineClass redefineClassWithError + * @run main/othervm -Djdk.attach.allowAttachSelf test.DefineClass redefineClass + * @run main/othervm -Djdk.attach.allowAttachSelf test.DefineClass redefineClassWithError * @author volker.simonis@gmail.com */