Integrated: 8291725: Leftover marks when VM shutdown aborts bitmap clearing make mixed gc fail

Thomas Schatzl tschatzl at openjdk.org
Tue Sep 6 13:45:13 UTC 2022


On Wed, 3 Aug 2022 20:36:44 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

> Hi all,
> 
>   can I have reviews for this change that removes stray bits on the mark bitmap during mixed gcs during shutdown?
> 
> So it may happen that after shutdown aborts the "Concurrent Cleanup for Next Mark" phase which leaves marks on the bitmaps (we want to shut down asap after all). However a mixed gc afterwards might notice these marks and in this case asserts, but in case of an evacuation failure might also trip over these additional marks.
> 
> Testing: tier1-5, I did not manage to reproduce this, but it's "obvious" given the failure mode, particularly because recently there has been a similar issue with full gc in [JDK-8274007](https://bugs.openjdk.org/browse/JDK-8274007)
> 
> Thanks,
>   Thomas

This pull request has now been integrated.

Changeset: b2067e63
Author:    Thomas Schatzl <tschatzl at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b2067e63da116235740f5891f6218c9e1fd7b527
Stats:     23 lines in 1 file changed: 16 ins; 6 del; 1 mod

8291725: Leftover marks when VM shutdown aborts bitmap clearing make mixed gc fail

Reviewed-by: iwalulya, ayang

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

PR: https://git.openjdk.org/jdk/pull/9735



More information about the hotspot-gc-dev mailing list