]> Cypherpunks repositories - gostls13.git/commit
runtime: fix windows build
authorDmitriy Vyukov <dvyukov@google.com>
Mon, 27 Jan 2014 20:26:56 +0000 (00:26 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Mon, 27 Jan 2014 20:26:56 +0000 (00:26 +0400)
commit86a3a542844a8c6040656006697e16b207c1d3f6
tree73f90feb6f5da4c7d29e19a05f0e5b3d245bb793
parent179d41feccc29260d1a16294647df218f1a6746a
runtime: fix windows build
Currently windows crashes because early allocs in schedinit
try to allocate tiny memory blocks, but m->p is not yet setup.
I've considered calling procresize(1) earlier in schedinit,
but this refactoring is better and must fix the issue as well.
Fixes #7218.

R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/54570045
src/pkg/runtime/malloc.goc
src/pkg/runtime/malloc.h
src/pkg/runtime/mgc0.c
src/pkg/runtime/runtime.h