mirror of
https://github.com/golang/go
synced 2024-11-23 08:20:05 -07:00
runtime: release Windows thread handle in unminit
Fixes #8517. LGTM=dvyukov, alex.brainman R=golang-codereviews, dvyukov, alex.brainman CC=golang-codereviews https://golang.org/cl/145890044
This commit is contained in:
parent
66795e8ba1
commit
88d53ddb17
@ -278,6 +278,8 @@ runtime·minit(void)
|
||||
void
|
||||
runtime·unminit(void)
|
||||
{
|
||||
runtime·stdcall1(runtime·CloseHandle, (uintptr)g->m->thread);
|
||||
g->m->thread = nil;
|
||||
}
|
||||
|
||||
// Described in http://www.dcl.hpi.uni-potsdam.de/research/WRK/2007/08/getting-os-information-the-kuser_shared_data-structure/
|
||||
|
Loading…
Reference in New Issue
Block a user