Skip to content

Commit fb0cac7

Browse files
rmacnak-googleCommit Queue
authored andcommitted
[vm] Fix uninitialized Code::instructions_ during deferred loading.
TEST=ci Bug: #59905 Bug: #60035 Change-Id: I733ee43f4e5e48ffa8eeb357de543233a1887b4a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/407601 Commit-Queue: Ryan Macnak <[email protected]> Reviewed-by: Brian Quinlan <[email protected]>
1 parent 2e13d4d commit fb0cac7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runtime/vm/app_snapshot.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9412,6 +9412,8 @@ void Deserializer::ReadInstructions(CodePtr code, bool deferred) {
94129412
#if defined(DART_PRECOMPILED_RUNTIME)
94139413
if (deferred) {
94149414
uword entry_point = StubCode::NotLoaded().EntryPoint();
9415+
// There are no serialized RawInstructions objects in this mode.
9416+
code->untag()->instructions_ = Instructions::null();
94159417
code->untag()->entry_point_ = entry_point;
94169418
code->untag()->unchecked_entry_point_ = entry_point;
94179419
code->untag()->monomorphic_entry_point_ = entry_point;

0 commit comments

Comments
 (0)