On Wed, 4 Jun 2025 12:03:15 GMT, Aleksey Shipilev <sh...@openjdk.org> wrote:

> SonarCloud points out that ThreadLock class introduced by 
> [JDK-8357650](https://bugs.openjdk.org/browse/JDK-8357650) can be turned into 
> static nested class. I don't think this shows any real bug yet, as 
> unreferenced enclosing class reference gets nowhere. But it would be nice to 
> be extra crisp here.
> 
> Additional testing:
>  - [ ] Linux x86_64 server fastdebug, `serviceability/`

The tests in test/jdk/com/sun/management/HotSpotDiagnosticMBean is the quickest 
way to exercise this code.

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

PR Comment: https://git.openjdk.org/jdk/pull/25638#issuecomment-2940053160

Reply via email to