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

Unified Diff: src/spaces.h

Issue 11421123: Fixed pointer arithmetic in write barrier for large objects when marking progress bar is used. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces.h
diff --git a/src/spaces.h b/src/spaces.h
index c246c944c7e819c420031db9a6e7e9c2333d100f..2e5367aa0ec992eee765a8b4516260c5b8fe7acc 100644
--- a/src/spaces.h
+++ b/src/spaces.h
@@ -506,7 +506,7 @@ class MemoryChunk {
bool IsLeftOfProgressBar(Object** slot) {
Address slot_address = reinterpret_cast<Address>(slot);
ASSERT(slot_address > this->address());
- return (slot_address - this->address() + kObjectStartOffset) <
+ return (slot_address - (this->address() + kObjectStartOffset)) <
progress_bar();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698