| Index: src/heap/spaces.cc
|
| diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
|
| index d88ec83f77f6704be00649d7cc9e62f09bb0be47..86e80e3d73e2c83835f1adde0d9a4e99194c22db 100644
|
| --- a/src/heap/spaces.cc
|
| +++ b/src/heap/spaces.cc
|
| @@ -2951,16 +2951,10 @@ Address LargePage::GetAddressToShrink() {
|
| }
|
|
|
| void LargePage::ClearOutOfLiveRangeSlots(Address free_start) {
|
| - if (old_to_new_slots() != nullptr) {
|
| - old_to_new_slots()->RemoveRange(
|
| - static_cast<int>(free_start - address()),
|
| - static_cast<int>(free_start + size() - address()));
|
| - }
|
| - if (old_to_old_slots() != nullptr) {
|
| - old_to_old_slots()->RemoveRange(
|
| - static_cast<int>(free_start - address()),
|
| - static_cast<int>(free_start + size() - address()));
|
| - }
|
| + RememberedSet<OLD_TO_NEW>::RemoveRange(this, free_start, area_end());
|
| + RememberedSet<OLD_TO_OLD>::RemoveRange(this, free_start, area_end());
|
| + RememberedSet<OLD_TO_NEW>::RemoveRangeTyped(this, free_start, area_end());
|
| + RememberedSet<OLD_TO_OLD>::RemoveRangeTyped(this, free_start, area_end());
|
| }
|
|
|
| // -----------------------------------------------------------------------------
|
|
|