-
Sub-task
-
Resolution: Fixed
-
P4
-
None
-
repo-shenandoah
ShenandoahGCSession is intended to create a scope where the ShenandoahHeap's _gc_cause and _gc_generation field reflect the current gc cycle. We now check that we do not overwrite existing non-default settings (respectively _no_gc and nullptr). The destructor of the scope/stack object also resets these fields to their default settings, ensuring intended uses. This uncovered a situation where the scope was not entered when it should have been, which we have now fixed.
- links to
-
Commit openjdk/shenandoah/d2102347
-
Commit(master) openjdk/shenandoah-jdk21u/80e796b4
-
Review(master) openjdk/shenandoah-jdk21u/68