]> Cypherpunks repositories - gostls13.git/commit
runtime: allocate GC workbufs from manually-managed spans
authorAustin Clements <austin@google.com>
Mon, 20 Mar 2017 18:05:48 +0000 (14:05 -0400)
committerAustin Clements <austin@google.com>
Thu, 13 Apr 2017 18:20:44 +0000 (18:20 +0000)
commit9cc883a466fdbeba4371cdcc49b4bfdda0253341
tree2f8b5bc5e19406ba46f44b9df7e7e535fecfcb8a
parent42c121476217595d9eddbded70cfb6500eca8442
runtime: allocate GC workbufs from manually-managed spans

Currently the runtime allocates workbufs from persistent memory, which
means they can never be freed.

Switch to allocating them from manually-managed heap spans. This
doesn't free them yet, but it puts us in a position to do so.

For #19325.

Change-Id: I94b2512a2f2bbbb456cd9347761b9412e80d2da9
Reviewed-on: https://go-review.googlesource.com/38581
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgc.go
src/runtime/mgcwork.go