Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Unified Diff: src/heap/spaces.h

Issue 1588823003: [heap] Properly adjust live bytes for pages where we abort evacaution (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments and remove DCHECK Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/mark-compact.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/spaces.h
diff --git a/src/heap/spaces.h b/src/heap/spaces.h
index 78386c44eb8fbb70a1e50de44cbc3924c2f7a573..a8102cabc7c5093b97bc59c45298c22fcb06ac72 100644
--- a/src/heap/spaces.h
+++ b/src/heap/spaces.h
@@ -612,6 +612,12 @@ class MemoryChunk {
return live_byte_count_;
}
+ void SetLiveBytes(int live_bytes) {
+ DCHECK_GE(live_bytes, 0);
+ DCHECK_LE(static_cast<unsigned>(live_bytes), size_);
+ live_byte_count_ = live_bytes;
+ }
+
int write_barrier_counter() {
return static_cast<int>(write_barrier_counter_);
}
« no previous file with comments | « src/heap/mark-compact.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698