On Wed, 26 Jan 2022 20:15:59 GMT, Chris Plummer <cjplum...@openjdk.org> wrote:

> This test is failing in the loom repo when using -Xcomp. The reason is 
> because loom introduced doing a full GC in the codecache sweeper, which 
> causes some of the Objects referenced by ObjectMonitors to be GC'd. The fix 
> is to check for the null Objects so we don't get an NPE.
> 
> I'm choosing to fix this in the jdk repo rather than the loom repo since it 
> is a latent bug that theoretically could occur even without the loom changes, 
> and also to help reduce the amount of changes to be reviewed when loom is 
> integrated into jdk.

This pull request has now been integrated.

Changeset: 0740ac47
Author:    Chris Plummer <cjplum...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/0740ac474cbda439684223e660827e38964e6b1f
Stats:     7 lines in 1 file changed: 4 ins; 0 del; 3 mod

8280555: serviceability/sa/TestObjectMonitorIterate.java is failing due to 
ObjectMonitor referencing a null Object

Reviewed-by: sspitsyn, lmesnik

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

PR: https://git.openjdk.java.net/jdk/pull/7238

Reply via email to