]> Cypherpunks repositories - gostls13.git/commit
runtime: say when a goroutine is locked to OS thread
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 26 Jun 2014 18:40:48 +0000 (11:40 -0700)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 26 Jun 2014 18:40:48 +0000 (11:40 -0700)
commit07f6f313a90b264377f8a9ecc4fadfe13bfff633
treebff77d5d2d66764e88c2a0102f7899296a4c1179
parent9e04ff79531201b43d1cc708e0308664fbbd8ef5
runtime: say when a goroutine is locked to OS thread
Say when a goroutine is locked to OS thread in crash reports
and goroutine profiles.
It can be useful to understand what goroutines consume OS threads
(syscall and locked), e.g. if you forget to call UnlockOSThread
or leak locked goroutines.

R=golang-codereviews
CC=golang-codereviews, rsc
https://golang.org/cl/94170043
src/pkg/runtime/proc.c