runtime: cleanup after conversion to Go

Change-Id: I7c41cc6a5ab9fb3b0cc3812cf7e9776884658778
Reviewed-on: https://go-review.googlesource.com/4671
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Dmitry Vyukov 2015-02-12 10:18:31 +03:00
parent 01ef6dbfa5
commit 8090f868fc
4 changed files with 13 additions and 22 deletions

View file

@ -32,7 +32,9 @@ func main() {
maxstacksize = 250000000
}
systemstack(newsysmon)
systemstack(func() {
newm(sysmon, nil)
})
// Lock the main goroutine onto this, the main OS thread,
// during initialization. Most programs won't care, but a few