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

Issue 3003333002: [VM] Fix deserialization of arrays with type arguments in ApiMessageReader. (Closed)

Created:
3 years, 4 months ago by Vyacheslav Egorov (Google)
Modified:
3 years, 3 months ago
Reviewers:
kustermann
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[VM] Fix deserialization of arrays with type arguments in ApiMessageReader. A placeholder object must be created and registered via AddBackRef(...) *before* any inner objects are deserialized otherwise NextAvailableObjectId() might reuse current object id for an inner object with omitted object id leading to inconsistent back references state. Also handle kObjectType in ReadIndexedObject allowing it to deserialize things like <Object>[...]. This bug was revealed by trying out to run VMService isolate in Kernel mode with strong mode enabled leading to arrays that had no type arguments have (inferred) type arguments. R=kustermann@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/08d2841def85942f6bed713e7ca9390f46e901bd

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -8 lines) Patch
M runtime/vm/dart_api_message.cc View 3 chunks +8 lines, -8 lines 0 comments Download
M runtime/vm/snapshot_test.cc View 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
Vyacheslav Egorov (Google)
3 years, 4 months ago (2017-08-24 15:01:07 UTC) #1
kustermann
LGTM
3 years, 4 months ago (2017-08-25 09:03:43 UTC) #2
Vyacheslav Egorov (Google)
3 years, 3 months ago (2017-08-25 09:51:28 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
08d2841def85942f6bed713e7ca9390f46e901bd (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698