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

Unified Diff: runtime/vm/gc_marker.cc

Issue 9398014: Ignore deleted handles when processing weak roots. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: final revision Created 8 years, 10 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 | « runtime/vm/dart_api_state.h ('k') | runtime/vm/scavenger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/gc_marker.cc
diff --git a/runtime/vm/gc_marker.cc b/runtime/vm/gc_marker.cc
index 2c8c9f2fb73a2b3ca036b0790808b1109efa94f0..62f1f3a0267c4dbc75ab3c73d6966680556e7707 100644
--- a/runtime/vm/gc_marker.cc
+++ b/runtime/vm/gc_marker.cc
@@ -197,7 +197,7 @@ class MarkingWeakVisitor : public HandleVisitor {
WeakPersistentHandle* handle =
reinterpret_cast<WeakPersistentHandle*>(addr);
RawObject* raw_obj = handle->raw();
- ASSERT(raw_obj->IsHeapObject());
+ if (!raw_obj->IsHeapObject()) return;
if (!raw_obj->IsMarked() && raw_obj->IsOldObject()) {
WeakPersistentHandle::Finalize(handle);
}
« no previous file with comments | « runtime/vm/dart_api_state.h ('k') | runtime/vm/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698