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

Unified Diff: runtime/vm/raw_object_snapshot.cc

Issue 2275803002: Assign external sizes to external strings and to external typed data created by the VM. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: . Created 4 years, 4 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
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
siva 2016/08/29 23:03:45 This whole function should be a NOP or UNREACHABLE
rmacnak 2016/08/30 20:49:17 This is never generated from raw_snapshot_object.c
}
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698