| Index: vm/snapshot.cc
|
| ===================================================================
|
| --- vm/snapshot.cc (revision 10528)
|
| +++ vm/snapshot.cc (working copy)
|
| @@ -581,6 +581,9 @@
|
| if (object_id == kSentinelObject) {
|
| return Object::sentinel();
|
| }
|
| + if (object_id == kEmptyArrayObject) {
|
| + return Object::empty_array();
|
| + }
|
| intptr_t class_id = ClassIdFromObjectId(object_id);
|
| if (IsSingletonClassId(class_id)) {
|
| return isolate()->class_table()->At(class_id); // get singleton class.
|
| @@ -709,6 +712,12 @@
|
| return;
|
| }
|
|
|
| + // Check if it is a singleton empty array object.
|
| + if (rawobj == Object::empty_array()) {
|
| + WriteVMIsolateObject(kEmptyArrayObject);
|
| + return;
|
| + }
|
| +
|
| // Check if it is a singleton class object which is shared by
|
| // all isolates.
|
| intptr_t id = rawobj->GetClassId();
|
|
|