Incorrect setting of checked parameter in spawnURI #23578
Labels
area-vm
Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends.
Milestone
Test: isolate/checked_test.dart
crashes in x64:
python tools/test.py -ax64 --write-debug-log --write-test-outcome-log --copy-coredumps --vm-options --optimization-counter-threshold=5 --exclude-suite pkg -t60 isolate/checked_test
The VM requires deterministic generation of unoptimized code in order to preserve deopt-ids. Therefore the checked mode must be turned on before any dart code in that isolate has been run. What happens is that RawReceivePortImpl._set_handler is compiled and run before checked mode is set and a sunsequent optimizing pass recompiles RawReceivePortImpl._set_handler in checked mode. Wrong ICData gets assigned to instructions, causing a crash on x64 at least.
The text was updated successfully, but these errors were encountered: