dart-sdk/tests
Daco Harkes e3e355e16a [vm/ffi] Fix FfiTrampolineData GC bug
This lets the GC visit FfiTrampolineData::c_signature again.

https://dart-review.googlesource.com/c/sdk/+/272201 stopped adding
FfiTrampolineData::c_signature to snapshots. However, instead of
skipping it manually in app_shapshot.cc, we skipped it in
raw_object.h, which also caused the GC to skip it.
This CL adds it back in as we need it in JIT snapshots. This way we
keep it consistent between AOT/JIT snapshots.

TEST=tests/ffi/regress_b_261224444_test.dart

The c signatures of FFI trampolines were not properly traced in the
precompiler, causing us to hit an assert when the classes mentioned in
those types where only referenced from a signature and not retained
for any other reason.

TEST=tests/ffi/native_assets/process_test.dart (dartkp)

Closes: https://github.com/dart-lang/sdk/issues/50678
Bug: b/261224444
Change-Id: I84fc880744c2045ea3e2ef4f37df454b80b2faeb
Cq-Include-Trybots: luci.dart.try:vm-precomp-ffi-qemu-linux-release-arm-try,vm-ffi-android-debug-arm-try,vm-ffi-android-debug-arm64c-try,vm-kernel-reload-rollback-linux-debug-x64-try,vm-kernel-reload-linux-debug-x64-try,app-kernel-linux-debug-x64-try,vm-kernel-precomp-linux-debug-x64c-try,vm-kernel-precomp-linux-debug-x64-try,vm-kernel-nnbd-linux-debug-x64-try,vm-kernel-linux-debug-x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/274387
Reviewed-by: Martin Kustermann <kustermann@google.com>
Auto-Submit: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2022-12-12 15:46:33 +00:00
..
co19 [dart2wasm] Re-enable async tests that no longer time out 2022-12-08 13:43:41 +00:00
co19_2 [Dart 3.0 alpha] Fix some test issues (legacy mode argument not passed in) 2022-12-06 19:34:47 +00:00
corelib [3.0 alpha] Remove deprecated onError API on int.parse, double.parse, and num.parse 2022-12-12 09:54:54 +00:00
corelib_2 [3.0 alpha] Remove deprecated onError API on int.parse, double.parse, and num.parse 2022-12-12 09:54:54 +00:00
dartdevc [ddc] Add interop classes for static members 2022-12-08 04:57:50 +00:00
dartdevc_2 [ddc] Add interop classes for static members 2022-12-08 04:57:50 +00:00
ffi [vm/ffi] Fix FfiTrampolineData GC bug 2022-12-12 15:46:33 +00:00
ffi_2 [vm/ffi] Fix FfiTrampolineData GC bug 2022-12-12 15:46:33 +00:00
language [3.0 alpha] Remove deprecated dart:core apis 2022-12-12 11:46:58 +00:00
language_2 [3.0 alpha] Remove deprecated dart:core apis 2022-12-12 11:46:58 +00:00
lib [3.0 alpha] Remove deprecated dart:core apis 2022-12-12 11:46:58 +00:00
lib_2 [3.0 alpha] Remove deprecated dart:core apis 2022-12-12 11:46:58 +00:00
modular [pkg:js] Enable modular compilation for exports 2022-10-26 16:34:38 +00:00
standalone [3.0 alpha][VM/Runtime] - Flip flag to make strong null safety the default. 2022-12-06 04:04:23 +00:00
standalone_2 [3.0 alpha][VM/Runtime] - Flip flag to make strong null safety the default. 2022-12-06 04:04:23 +00:00
web [ffi] Convert ABI-specific integers to fixed-width integers when doing wasm FfiNative transformation. 2022-11-08 22:16:28 +00:00
web_2 [testing] Remove --compiler=none from test.py 2022-10-19 08:09:58 +00:00
legacy_status_dart2js.csv [dart2js] Remove obsolete unittests. 2020-05-12 17:16:39 +00:00
OWNERS [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
README.md

This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.