]> Cypherpunks repositories - gostls13.git/commit
runtime: refactor coalescing into its own method
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 14 Jan 2019 21:27:29 +0000 (21:27 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 17 Jan 2019 16:59:49 +0000 (16:59 +0000)
commit79ac638e41abed1d8f46762ecd6d63a93d9bb382
tree9e654a68f04c5bbe8fbf6ac10907cbf4a81b434a
parente2ff73286f68543d024f632a1764e93a6b21ccee
runtime: refactor coalescing into its own method

The coalescing process is complex and in a follow-up change we'll need
to do it in more than one place, so this change factors out the
coalescing code in freeSpanLocked into a method on mheap.

Change-Id: Ia266b6cb1157c1b8d3d8a4287b42fbcc032bbf3a
Reviewed-on: https://go-review.googlesource.com/c/157838
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/mheap.go