diff --git a/test/hotspot/jtreg/runtime/Thread/AsyncExceptionOnMonitorEnter.java b/test/hotspot/jtreg/runtime/Thread/AsyncExceptionOnMonitorEnter.java index 30cd98fa239e2..8446ffb20fe2f 100644 --- a/test/hotspot/jtreg/runtime/Thread/AsyncExceptionOnMonitorEnter.java +++ b/test/hotspot/jtreg/runtime/Thread/AsyncExceptionOnMonitorEnter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2022, 2025, 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 @@ -26,7 +26,7 @@ * @bug 8283044 * @summary Stress delivery of asynchronous exceptions while target is at monitorenter * @library /test/hotspot/jtreg/testlibrary - * @run main/othervm AsyncExceptionOnMonitorEnter 0 + * @run main/othervm/native AsyncExceptionOnMonitorEnter 0 * @run main/othervm/native -agentlib:AsyncExceptionOnMonitorEnter AsyncExceptionOnMonitorEnter 1 */ diff --git a/test/hotspot/jtreg/runtime/Thread/AsyncExceptionTest.java b/test/hotspot/jtreg/runtime/Thread/AsyncExceptionTest.java index c7d0d1a27f022..52fc4ca1d567f 100644 --- a/test/hotspot/jtreg/runtime/Thread/AsyncExceptionTest.java +++ b/test/hotspot/jtreg/runtime/Thread/AsyncExceptionTest.java @@ -27,13 +27,14 @@ * @requires vm.compiler1.enabled | vm.compiler2.enabled * @summary Stress delivery of asynchronous exceptions. * @library /test/hotspot/jtreg/testlibrary - * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+StressCompiledExceptionHandlers + * @run main/othervm/native + * -XX:+IgnoreUnrecognizedVMOptions -XX:+StressCompiledExceptionHandlers * -Xcomp -XX:TieredStopAtLevel=3 * -XX:CompileCommand=dontinline,AsyncExceptionTest::internalRun2 * -XX:CompileCommand=compileonly,AsyncExceptionTest::internalRun1 * -XX:CompileCommand=compileonly,AsyncExceptionTest::internalRun2 * AsyncExceptionTest - * @run main/othervm -Xcomp + * @run main/othervm/native -Xcomp * -XX:CompileCommand=dontinline,AsyncExceptionTest::internalRun2 * -XX:CompileCommand=compileonly,AsyncExceptionTest::internalRun1 * -XX:CompileCommand=compileonly,AsyncExceptionTest::internalRun2 diff --git a/test/hotspot/jtreg/runtime/Thread/TestBreakSignalThreadDump.java b/test/hotspot/jtreg/runtime/Thread/TestBreakSignalThreadDump.java index 011f69794319e..3cb4be1b0049f 100644 --- a/test/hotspot/jtreg/runtime/Thread/TestBreakSignalThreadDump.java +++ b/test/hotspot/jtreg/runtime/Thread/TestBreakSignalThreadDump.java @@ -28,7 +28,7 @@ * @summary Check that Ctrl-\ or Ctrl-Break (on Windows) causes HotSpot VM to print a full thread dump. * @library /vmTestbase * /test/lib - * @run driver TestBreakSignalThreadDump + * @run main/native TestBreakSignalThreadDump */ /* @@ -42,7 +42,7 @@ * @requires !vm.asan * @library /vmTestbase * /test/lib - * @run driver TestBreakSignalThreadDump load_libjsig + * @run main/native TestBreakSignalThreadDump load_libjsig */ import java.nio.file.Files;