| Index: src/heap/mark-compact.h
|
| diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h
|
| index 63afd834ea1e31f184d3bd70e233c6e2736a8ea5..00620423fa689ef66d541c3ad5dcb6904e418916 100644
|
| --- a/src/heap/mark-compact.h
|
| +++ b/src/heap/mark-compact.h
|
| @@ -80,7 +80,7 @@ class ObjectMarking : public AllStatic {
|
| (access_mode == MarkBit::ATOMIC || IsBlack<access_mode>(obj, state)));
|
| MarkBit markbit = MarkBitFrom(obj, state);
|
| if (!Marking::BlackToGrey<access_mode>(markbit)) return false;
|
| - state.IncrementLiveBytes(-obj->Size());
|
| + state.IncrementLiveBytes<access_mode>(-obj->Size());
|
| return true;
|
| }
|
|
|
| @@ -107,7 +107,7 @@ class ObjectMarking : public AllStatic {
|
| DCHECK((access_mode == MarkBit::ATOMIC || IsGrey<access_mode>(obj, state)));
|
| MarkBit markbit = MarkBitFrom(obj, state);
|
| if (!Marking::GreyToBlack<access_mode>(markbit)) return false;
|
| - state.IncrementLiveBytes(obj->Size());
|
| + state.IncrementLiveBytes<access_mode>(obj->Size());
|
| return true;
|
| }
|
|
|
|
|