4138277ee6
Decorating a field with 'vm:shared' pragma makes values in this field accessible to all isolates in an isolate group. Introduce `channel` to the `Version` class so that the pragma can only be enabled on main and dev channels. TEST=shared_test, shared_fail_without_flag_test BUG=https://github.com/dart-lang/sdk/issues/55991 Change-Id: I843c9f0d2ffc9f2ced7ddc4006bb6f9ca4e2ddf4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/370064 Reviewed-by: Slava Egorov <vegorov@google.com> Commit-Queue: Alexander Aprelev <aam@google.com>
398 B
398 B
Shared memory
https://github.com/dart-lang/language/blob/main/working/333%20-%20shared%20memory%20multithreading/proposal.md provided a framework for adding shared memory support to applications running on dart vm.
First, support for pragma("vm:shared") was added, which could be put on static fields. Static fields
decorated with such pragma become shared by all isolates in isolate group.