Index: src/runtime/runtime-regexp.cc |
diff --git a/src/runtime/runtime-regexp.cc b/src/runtime/runtime-regexp.cc |
index 67e1384ff0068fc9aa043b26bc0dff6971e36e9b..e742d64ca1d2e3f1b65c1be4c763bb5485bc89cd 100644 |
--- a/src/runtime/runtime-regexp.cc |
+++ b/src/runtime/runtime-regexp.cc |
@@ -643,7 +643,7 @@ MUST_USE_RESULT static Object* StringReplaceGlobalRegExpWithEmptyString( |
if (!heap->lo_space()->Contains(*answer)) { |
heap->CreateFillerObjectAt(end_of_string, delta); |
} |
- heap->AdjustLiveBytes(answer->address(), -delta, Heap::CONCURRENT_TO_SWEEPER); |
+ heap->AdjustLiveBytes(*answer, -delta, Heap::CONCURRENT_TO_SWEEPER); |
return *answer; |
} |