From f83e1ed7672ed97487f44b6387044b450c48dc5d Mon Sep 17 00:00:00 2001 From: Ryan Macnak Date: Mon, 31 Jan 2022 10:53:54 -0800 Subject: [PATCH] Label ConcurrentMessageLoop worker threads for the Dart VM. --- runtime/dart_vm.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/dart_vm.cc b/runtime/dart_vm.cc index ad3612b14305e..a17efea8bd7e2 100644 --- a/runtime/dart_vm.cc +++ b/runtime/dart_vm.cc @@ -490,6 +490,10 @@ DartVM::DartVM(std::shared_ptr vm_data, Dart_SetDartLibrarySourcesKernel(dart_library_sources->GetMapping(), dart_library_sources->GetSize()); } + + // Update thread names now that the Dart VM is initialized. + concurrent_message_loop_->PostTaskToAllWorkers( + [] { Dart_SetThreadName("FlutterConcurrentMessageLoopWorker"); }); } DartVM::~DartVM() {