RFR: 8353190: Use "/native" Run Option for TestAvailableProcessors Execution

Oleksii Sylichenko duke at openjdk.org
Fri Mar 28 18:11:47 UTC 2025


Currently, the test executes the program using `test.nativepath`, but it relies on path resolution. I propose following standard conventions in this case and running the test with the `/native` option instead.

With this change:
- Path resolution is no longer required.
- If `nativepath` is not specified at runtime, a standard error message will be printed to the console.

This improves consistency and simplifies the test execution process.

I kindly ask the original author of the test @swesonga and those who reviewed the original pull request  #17576 for this test to take a look at this PR: @jdksjolen and @dholmes

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

Commit messages:
 - Replaced the call to GetProcessorInfo.exe via resolve path with the use of the test launch option "/native".

Changes: https://git.openjdk.org/jdk/pull/23803/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23803&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8353190
  Stats: 12 lines in 1 file changed: 0 ins; 8 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/23803.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23803/head:pull/23803

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


More information about the hotspot-runtime-dev mailing list