Skip to content

Commit aa07e8f

Browse files
Label ConcurrentMessageLoop worker threads for the Dart VM. (flutter#31168)
1 parent f9241f9 commit aa07e8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

runtime/dart_vm.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,10 @@ DartVM::DartVM(std::shared_ptr<const DartVMData> vm_data,
492492
Dart_SetDartLibrarySourcesKernel(dart_library_sources->GetMapping(),
493493
dart_library_sources->GetSize());
494494
}
495+
496+
// Update thread names now that the Dart VM is initialized.
497+
concurrent_message_loop_->PostTaskToAllWorkers(
498+
[] { Dart_SetThreadName("FlutterConcurrentMessageLoopWorker"); });
495499
}
496500

497501
DartVM::~DartVM() {

0 commit comments

Comments
 (0)