Index: runtime/vm/raw_object_snapshot.cc |
diff --git a/runtime/vm/raw_object_snapshot.cc b/runtime/vm/raw_object_snapshot.cc |
index d94ce4e2e4e509fe31340bced5b79bcc7e065f41..361287631b24374fa300c2e0c42fcfecd0215602 100644 |
--- a/runtime/vm/raw_object_snapshot.cc |
+++ b/runtime/vm/raw_object_snapshot.cc |
@@ -2634,7 +2634,8 @@ RawExternalTypedData* ExternalTypedData::ReadFrom(SnapshotReader* reader, |
Dart_WeakPersistentHandleFinalizer callback = |
reinterpret_cast<Dart_WeakPersistentHandleFinalizer>( |
reader->ReadRawPointerValue()); |
- obj.AddFinalizer(peer, callback); |
+ intptr_t external_size = obj.LengthInBytes(); |
+ obj.AddFinalizer(peer, callback, external_size); |
return obj.raw(); |
} |