[jdk17u-dev] RFR: 8320687: sun.jvmstat.monitor.MonitoredHost.getMonitoredHost() throws unexpected exceptions when invoked concurrently
Satyen Subramaniam
ssubramaniam at openjdk.org
Fri Apr 25 16:42:26 UTC 2025
Backporting JDK-8320687: sun.jvmstat.monitor.MonitoredHost.getMonitoredHost() throws unexpected exceptions when invoked concurrently. The fix proposes to guard the usage of the shared ServiceLoader instance through the monitoredHosts object monitor. Adds test. Ran GHA Sanity Checks, local Tier 1, 2, and 3, and new `test/jdk/sun/jvmstat/monitor/MonitoredVm/ConcurrentGetMonitoredHost.java` tests. Patch is almost clean (copyright header is slightly different).
-------------
Commit messages:
- Backport 81484d8c0520cf55ec58fc7b4c81880e69537674
Changes: https://git.openjdk.org/jdk17u-dev/pull/3531/files
Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=3531&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8320687
Stats: 103 lines in 2 files changed: 93 ins; 7 del; 3 mod
Patch: https://git.openjdk.org/jdk17u-dev/pull/3531.diff
Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/3531/head:pull/3531
PR: https://git.openjdk.org/jdk17u-dev/pull/3531
More information about the jdk-updates-dev
mailing list