]> Cypherpunks repositories - gostls13.git/commit
runtime: increase windows prof thread priority sooner
authorAlex Brainman <alex.brainman@gmail.com>
Wed, 3 Sep 2014 04:17:04 +0000 (14:17 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Wed, 3 Sep 2014 04:17:04 +0000 (14:17 +1000)
commit2c780a35b986dec270640115fb3f28a9e1affeaf
treed5114569991901f4a69b8f94893fe1fb483ce87d
parent9aa7d136f52928587a6bd2db320f4f4f2b6b0666
runtime: increase windows prof thread priority sooner

If system is busy burning cpu, it takes long time (about 300ms on
windows builders) to adjust prof thread priority. Once adjusted, prof
thread runs ahead of everyone else, but due to initial slowness, it
does not capture prof snapshots until start-up period is completed.

Change prof thread priority sooner, so it can start captures straight
away.

LGTM=dvyukov
R=golang-codereviews, dvyukov
CC=golang-codereviews
https://golang.org/cl/134360043
src/pkg/runtime/os_windows.c