Please review this PR which updates a few JDK tests to not depend on the existence of `java.lang.ref.ReferenceQueue$Lock` and `java.lang.Shutdown$Lock` classes. These are suggested for removal in JDK-8376477, see #29442.
* `ClhsdbInspect` is updated to use add a nested Lock class in the sample app and use that instead. * `ConcurrentAssociateTest` and `Phaser/Basic` are updated to not use lock name when filtering threads to dump for debugging purposes when failing. * `ImageReaderBenchmark` micro is updated to remove these classes from the list of expected system image resource names I have verified that these tests now run with or without the `Lock` classes present in the JDK. I called the thread dump debug methods manually to verify them since these only run on test failure. GHA run passes. Test only change/cleanup. `noreg-self` ------------- Commit messages: - Remove test dependencies on ReferenceQueue$Lock and Shutdown$Lock Changes: https://git.openjdk.org/jdk/pull/29455/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29455&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8376533 Stats: 26 lines in 5 files changed: 6 ins; 8 del; 12 mod Patch: https://git.openjdk.org/jdk/pull/29455.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/29455/head:pull/29455 PR: https://git.openjdk.org/jdk/pull/29455
