diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2014-01-28 00:26:56 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2014-01-28 00:26:56 +0400 |
| commit | 86a3a542844a8c6040656006697e16b207c1d3f6 (patch) | |
| tree | 73f90feb6f5da4c7d29e19a05f0e5b3d245bb793 /src/pkg/runtime/runtime.h | |
| parent | 179d41feccc29260d1a16294647df218f1a6746a (diff) | |
| download | go-86a3a542844a8c6040656006697e16b207c1d3f6.tar.xz | |
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
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 499983fd78..13fb554547 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -385,11 +385,6 @@ struct P MCache* mcache; Defer* deferpool[5]; // pool of available Defer structs of different sizes (see panic.c) - // Allocator cache for tiny objects w/o pointers. - // See "Tiny allocator" comment in malloc.goc. - byte* tiny; - uintptr tinysize; - // Cache of goroutine ids, amortizes accesses to runtime·sched.goidgen. uint64 goidcache; uint64 goidcacheend; |
