[vm] Runtime option to not use the simulator for simarm64_arm64.

TEST=ci
Cq-Include-Trybots: luci.dart.try:vm-ffi-mac-debug-simarm64_arm64-try,vm-ffi-mac-release-simarm64_arm64-try
Change-Id: Id98d337ce16ba4b434b5c69016f01eec9b85f9d2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/434982
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
Ryan Macnak
2025-06-18 10:45:05 -07:00
committed by Commit Queue
parent 69b99822de
commit f5eaefd5b6
12 changed files with 194 additions and 86 deletions
+10 -2
View File
@@ -533,7 +533,11 @@ void Thread::EnterIsolateGroupAsMutator(IsolateGroup* isolate_group,
ResumeThreadInternal(thread);
#if defined(USING_SIMULATOR)
thread->SetStackLimit(Simulator::Current()->overflow_stack_limit());
if (FLAG_use_simulator) {
thread->SetStackLimit(Simulator::Current()->overflow_stack_limit());
} else {
thread->SetStackLimit(OSThread::Current()->overflow_stack_limit());
}
#else
thread->SetStackLimit(OSThread::Current()->overflow_stack_limit());
#endif
@@ -583,7 +587,11 @@ void Thread::ResumeDartMutatorThreadInternal(Thread* thread) {
if (Dart::vm_isolate() != nullptr &&
thread->isolate() != Dart::vm_isolate()) {
#if defined(USING_SIMULATOR)
thread->SetStackLimit(Simulator::Current()->overflow_stack_limit());
if (FLAG_use_simulator) {
thread->SetStackLimit(Simulator::Current()->overflow_stack_limit());
} else {
thread->SetStackLimit(OSThread::Current()->overflow_stack_limit());
}
#else
thread->SetStackLimit(OSThread::Current()->overflow_stack_limit());
#endif