[jdk16] RFR: 8257521: runtime/logging/MonitorInflationTest.java crashed in MonitorList::unlink_deflated

Daniel D.Daugherty dcubed at openjdk.java.net
Wed Dec 23 03:15:07 UTC 2020


On Wed, 23 Dec 2020 03:08:41 GMT, Daniel D. Daugherty <dcubed at openjdk.org> wrote:

> This is a trivial fix to MonitorList::unlink_deflated() to prevent it from
> crashing when called with an empty in-use MonitorList. That condition
> can only arise during the final audit during VM shutdown.
> 
> This fix has been tested with runtime/logging/MonitorInflationTest.java
> combined with temporary debug code that delays the background threads
> that normally call Object.wait() very early in the VM's life. By delaying those
> background threads, we increase the likelihood of having an empty in-use
> MonitorList.
> 
> The fix has also been tested with Mach5 Tier[1-3].

@fisk - If you are around, please take a look at this one.

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

PR: https://git.openjdk.java.net/jdk16/pull/62


More information about the hotspot-runtime-dev mailing list