Commit 3fac7c5
[vm] Ensure immutable bit is preserved in aot snapshot serialization/deserialization.
Before this cl, in AOT, the immutable bit was not set on objects like Strings, so use of Strings in shared fields resulted in exception thrown due to use of non-trivially shareable values in shared fields.
TEST=run_isolate_group_run_test on aot
Change-Id: Ib3c79852a6c7c0cfa477039096b73892dd8b2ea7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/443440
Commit-Queue: Alexander Aprelev <[email protected]>
Reviewed-by: Daco Harkes <[email protected]>1 parent 5750b2c commit 3fac7c5
File tree
3 files changed
+17
-5
lines changed- runtime/vm
- tests/ffi
3 files changed
+17
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
659 | | - | |
| 659 | + | |
| 660 | + | |
660 | 661 | | |
661 | 662 | | |
662 | 663 | | |
| |||
676 | 677 | | |
677 | 678 | | |
678 | 679 | | |
679 | | - | |
| 680 | + | |
| 681 | + | |
680 | 682 | | |
681 | 683 | | |
682 | 684 | | |
683 | | - | |
684 | | - | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
685 | 688 | | |
686 | 689 | | |
687 | 690 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
505 | | - | |
| 505 | + | |
| 506 | + | |
506 | 507 | | |
507 | 508 | | |
508 | 509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
147 | 155 | | |
148 | 156 | | |
0 commit comments