]> Cypherpunks repositories - gostls13.git/commit
runtime: consolidate changes to arena_used
authorAustin Clements <austin@google.com>
Fri, 7 Apr 2017 17:49:51 +0000 (13:49 -0400)
committerAustin Clements <austin@google.com>
Tue, 11 Apr 2017 01:35:47 +0000 (01:35 +0000)
commit6c6f455f880ea560707348fcea9d4188782706e8
tree7da41710b708f3f7b4b36ec7aefe51aed882456f
parent075ee299b19f6c7e9cc506f1c6420b4c71a61d12
runtime: consolidate changes to arena_used

Changing mheap_.arena_used requires several steps that are currently
repeated multiple times in mheap_.sysAlloc. Consolidate these into a
single function.

In the future, this will also make it easier to add other auxiliary VM
structures.

Change-Id: Ie68837d2612e1f4ba4904acb1b6b832b15431d56
Reviewed-on: https://go-review.googlesource.com/40151
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/malloc.go
src/runtime/mbitmap.go
src/runtime/mheap.go