diff --git a/src/pkg/runtime/os_windows.c b/src/pkg/runtime/os_windows.c index 43026d64577..172fd92285c 100644 --- a/src/pkg/runtime/os_windows.c +++ b/src/pkg/runtime/os_windows.c @@ -570,6 +570,7 @@ runtime·resetcpuprofiler(int32 hz) runtime·atomicstorep(&profiletimer, timer); thread = runtime·stdcall6(runtime·CreateThread, (uintptr)nil, (uintptr)nil, (uintptr)runtime·profileloop, (uintptr)nil, (uintptr)nil, (uintptr)nil); + runtime·stdcall2(runtime·SetThreadPriority, (uintptr)thread, THREAD_PRIORITY_HIGHEST); runtime·stdcall1(runtime·CloseHandle, (uintptr)thread); } runtime·unlock(&lock);