dart-sdk/runtime
Tess Strickland 3fcf660ed1 [vm] For now, initialize the contents of null with its address.
When running with `--no-sound-null-safety` turned on, it turns out null
is unboxed as an Mint in some cases without checking for null first.
Before, tests would fail because unboxing it would give a really
large int that was unlikely to be acceptable to subsequent range
checks and the like.

However, since 2f63ace, that memory is now zero-initialized, and zero is
more likely to be an acceptable value, so tests either fail for
unexpected reasons or, worse, unexpectedly succeed.

As a stopgap until the appropriate checks are emitted, we initialize
the contents of null with its address as an ObjectPtr like we used to.

TEST=corelib{,_2}/list_removeat_test on dartkp-* configurations.

Issue: https://github.com/dart-lang/sdk/issues/52910
Change-Id: If456d503c86202616f4f566a402118e9c41194ba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/313500
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2023-07-13 09:19:57 +00:00
..
bin [vm] Enable clang-tidy for arm, arm64, riscv64, product, release, precompiler. 2023-07-11 15:13:58 +00:00
docs [vm] Rework awaiter stack unwinding. 2023-06-30 14:03:03 +00:00
include Expand collection of object instances. 2023-07-03 12:29:15 +00:00
lib [vm] Rework awaiter stack unwinding. 2023-06-30 14:03:03 +00:00
observatory [Status Files] Update status files to account for the following 2023-07-10 17:42:04 +00:00
observatory_2 [Status Files] Update status files to account for the following 2023-07-10 17:42:04 +00:00
platform [vm] Allow non-TSAN gen_snapshot target TSAN AOT runtime 2023-07-10 11:53:58 +00:00
tests [vm, gc] Add flag to disable write barrier elimination. 2023-07-12 15:46:27 +00:00
third_party Spelling pkg analyzer lib 2023-01-25 14:08:27 +00:00
tools [vm] Enable clang-tidy for arm, arm64, riscv64, product, release, precompiler. 2023-07-11 15:13:58 +00:00
vm [vm] For now, initialize the contents of null with its address. 2023-07-13 09:19:57 +00:00
.clang-tidy
.gitignore
BUILD.gn [vm] Make AOT compiler use TARGET_USES_THREAD_SANITIZER 2023-07-06 08:44:33 +00:00
codereview.settings
configs.gni [Runtime] Add extra_product_deps and extra_nonproduct_deps params to "library_for_all_configs_with_compiler" template 2023-04-14 19:51:40 +00:00
CPPLINT.cfg [cpplint] Disable runtime/references lint 2023-01-23 18:21:48 +00:00
OWNERS [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
PRESUBMIT.py Reland "Reland "[VM] Begin supporting Perfetto file recorder"" 2023-04-18 19:39:05 +00:00
runtime_args.gni [build] Decide in one place between using app-jit and kernel for the SDK snapshots. 2023-06-01 15:20:58 +00:00