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

Daniel D.Daugherty dcubed at openjdk.java.net
Wed Dec 23 14:40:59 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].

This pull request has now been integrated.

Changeset: 9cd8e38a
Author:    Daniel D. Daugherty <dcubed at openjdk.org>
URL:       https://git.openjdk.java.net/jdk16/commit/9cd8e38a
Stats:     3 lines in 1 file changed: 1 ins; 0 del; 2 mod

8257521: runtime/logging/MonitorInflationTest.java crashed in MonitorList::unlink_deflated

Reviewed-by: kbarrett

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

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


More information about the hotspot-runtime-dev mailing list