1
0
mirror of https://github.com/golang/go synced 2024-11-23 05:00:07 -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:
Russ Cox 2014-09-18 22:33:49 -04:00
parent 66795e8ba1
commit 88d53ddb17

View File

@ -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/