Integrated: 8329529: Serial: Move _saved_mark_word out of ContiguousSpace

Guoxiong Li gli at openjdk.org
Fri Apr 5 12:19:13 UTC 2024


On Wed, 3 Apr 2024 12:18:40 GMT, Guoxiong Li <gli at openjdk.org> wrote:

> Hi all,
> 
> This patch removes the field `ContiguousSpace::_saved_mark_word` and its related methods, adds the corresponding fields to `DefNewGeneration` and `TenuredGeneration`, and moves the method `ContiguousSpace::oop_since_save_marks_iterate` to `Generation`. Many usages are adjusted as well.
> 
> An alternative way is add a class which extends the `ContiguousSpace` to place `_saved_mark_word` and its related methods. But this way would increase the class hierarchy. Not really know whether it deserves to do that.
> 
> The tests `make test-tier1_gc` passed locally. Thanks for taking the time to review.
> 
> Best Regards,
> -- Guoxiong

This pull request has now been integrated.

Changeset: 46d3d7b9
Author:    Guoxiong Li <gli at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/46d3d7b9673e06c74c8586c164f8a233a8876835
Stats:     113 lines in 13 files changed: 39 ins; 59 del; 15 mod

8329529: Serial: Move _saved_mark_word out of ContiguousSpace

Reviewed-by: ayang, iwalulya

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

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


More information about the hotspot-gc-dev mailing list