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

Unified Diff: runtime/vm/snapshot.h

Issue 793763004: Fix error string to include information about class and library when the snapshot writer throws an … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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/parser.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.h
===================================================================
--- runtime/vm/snapshot.h (revision 42528)
+++ runtime/vm/snapshot.h (working copy)
@@ -596,7 +596,10 @@
protected:
void UnmarkAll() {
- forward_list_.UnmarkAll();
+ if (!unmarked_objects_) {
+ forward_list_.UnmarkAll();
+ unmarked_objects_ = true;
+ }
}
bool CheckAndWritePredefinedObject(RawObject* raw);
@@ -632,6 +635,7 @@
ForwardList forward_list_;
Exceptions::ExceptionType exception_type_; // Exception type.
const char* exception_msg_; // Message associated with exception.
+ bool unmarked_objects_; // True if marked objects have been unmarked.
friend class RawArray;
friend class RawClass;
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698