RFR: 8362834: Several runtime/Thread tests should mark as /native

SendaoYan syan at openjdk.org
Mon Jul 21 09:52:29 UTC 2025


Hi all,

Some of the runtime/Thread tests ready mark as /native:
runtime/Thread/SuspendAtExit.java
runtime/Thread/StopAtExit.java

But there are some of the runtime/Thread tests needed to mark as /native:
runtime/Thread/AsyncExceptionTest.java
runtime/Thread/AsyncExceptionOnMonitorEnter.java
runtime/Thread/TestBreakSignalThreadDump.java#with_jsig
runtime/Thread/TestBreakSignalThreadDump.java#default

Without -nativepath jtreg option, the test will report test failure, such as: "Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]", after this PR without -nativepath jtreg option, the test will report "Error. Use -nativepath to specify the location of native code", this will make test usage more friendly.

Change has been verified locally, test-fix only, no risk.

-------------

Commit messages:
 - Remove /othervm for test/hotspot/jtreg/runtime/Thread/TestBreakSignalThreadDump.java
 - Use main/native for test/hotspot/jtreg/runtime/Thread/TestBreakSignalThreadDump.java
 - 8362834: Several runtime/Thread tests should mark as /native

Changes: https://git.openjdk.org/jdk/pull/26411/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26411&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8362834
  Stats: 7 lines in 3 files changed: 1 ins; 0 del; 6 mod
  Patch: https://git.openjdk.org/jdk/pull/26411.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26411/head:pull/26411

PR: https://git.openjdk.org/jdk/pull/26411


More information about the hotspot-runtime-dev mailing list