RFR: 8281035: Serial: Move RemoveForwardedPointerClosure to local scope [v2]

Thomas Schatzl tschatzl at openjdk.java.net
Tue Feb 1 16:49:07 UTC 2022


On Tue, 1 Feb 2022 15:59:49 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

>> Simple change of moving `RemoveForwardedPointerClosure` from shared code to Serial code.
>> 
>> Test: hotspot_gc
>
> Albert Mingkun Yang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   review

Lgtm with that minor nit.

src/hotspot/share/gc/serial/defNewGeneration.cpp line 680:

> 678:     void do_object(oop obj) override {
> 679:       if (obj->is_forwarded()) {
> 680:         obj->init_mark();

Since it is available, probably use `PreservedMarks::init_forwarded_mark` here.

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

Marked as reviewed by tschatzl (Reviewer).

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



More information about the hotspot-gc-dev mailing list