Index: src/runtime/runtime-regexp.cc |
diff --git a/src/runtime/runtime-regexp.cc b/src/runtime/runtime-regexp.cc |
index df86aa870cb659eb057c2be97b3c9c06a2355f0e..add5586b8afd6346edab3744a008b78983ebab65 100644 |
--- a/src/runtime/runtime-regexp.cc |
+++ b/src/runtime/runtime-regexp.cc |
@@ -642,7 +642,7 @@ MUST_USE_RESULT static Object* StringReplaceGlobalRegExpWithEmptyString( |
// TODO(hpayer): We should shrink the large object page if the size |
// of the object changed significantly. |
if (!heap->lo_space()->Contains(*answer)) { |
- heap->CreateFillerObjectAt(end_of_string, delta); |
+ heap->CreateFillerObjectAt(end_of_string, delta, ClearRecordedSlots::kNo); |
} |
heap->AdjustLiveBytes(*answer, -delta, Heap::CONCURRENT_TO_SWEEPER); |
return *answer; |