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

Unified Diff: src/heap/mark-compact.h

Issue 2506633002: [heap] Only visit strong links during scavenge of promoted objects (Closed)
Patch Set: Created 4 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
« src/heap/heap.cc ('K') | « src/heap/heap.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/mark-compact.h
diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h
index 21b0e4c62fa55f82cfcf28a8134c7fb8257f64c0..4be6946c128078f0b09e07ba7730db2d07aceb97 100644
--- a/src/heap/mark-compact.h
+++ b/src/heap/mark-compact.h
@@ -473,8 +473,9 @@ class MarkCompactCollector {
}
INLINE(static bool IsOnEvacuationCandidate(Object* obj)) {
- return Page::FromAddress(reinterpret_cast<Address>(obj))
- ->IsEvacuationCandidate();
+ return obj->IsHeapObject() &&
+ Page::FromAddress(reinterpret_cast<Address>(obj))
+ ->IsEvacuationCandidate();
}
void RecordRelocSlot(Code* host, RelocInfo* rinfo, Object* target);
« src/heap/heap.cc ('K') | « src/heap/heap.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698