RFR: 8356588: Some nsk/jdi tests can fetch ThreadReference from static field in the debuggee: part 3

Chris Plummer cjplummer at openjdk.org
Thu May 8 22:16:33 UTC 2025


There were a small number of tests that were missed with [JDK-8356023](https://bugs.openjdk.org/browse/JDK-8356023) (part 2). Most of these tests are ones that were calling vm.allThreads() directly to search for the needed thread rather than relying on findThreadByNameOrThrow().

Tested with CI tier5, which is where all the nsk/jdi testing is done. Also ran locally on linux-x64.

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

Commit messages:
 - fix jcheck errors
 - update copyrights
 - threadNames[] not needed anymore
 - Use threadByFieldNameOrThrow() when possible

Changes: https://git.openjdk.org/jdk/pull/25132/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25132&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8356588
  Stats: 428 lines in 35 files changed: 75 ins; 272 del; 81 mod
  Patch: https://git.openjdk.org/jdk/pull/25132.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25132/head:pull/25132

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


More information about the serviceability-dev mailing list