]> Cypherpunks repositories - gostls13.git/commit
runtime: add GODEBUG=sbrk=1 to bypass memory allocator (and GC)
authorRuss Cox <rsc@golang.org>
Mon, 9 Mar 2015 00:56:15 +0000 (20:56 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 20 Mar 2015 00:02:30 +0000 (00:02 +0000)
commit564eab891a2a0da77aeec29d94a5a4c0c9d002b8
tree5cf775727aa1f454a9c609b4a52ce446b19f6aaa
parent01af72705255fbb48ea3ff3558766537dd0a8ee0
runtime: add GODEBUG=sbrk=1 to bypass memory allocator (and GC)

To reduce lock contention in this mode, makes persistent allocation state per-P,
which means at most 64 kB overhead x $GOMAXPROCS, which should be
completely tolerable.

Change-Id: I34ca95e77d7e67130e30822e5a4aff6772b1a1c5
Reviewed-on: https://go-review.googlesource.com/7740
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/malloc.go
src/runtime/mfinal.go
src/runtime/runtime1.go
src/runtime/runtime2.go