]> Cypherpunks repositories - gostls13.git/commit
runtime: de-duplicate coalescing code
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 15 Jan 2019 23:48:57 +0000 (23:48 +0000)
committerAustin Clements <austin@google.com>
Thu, 17 Jan 2019 17:05:37 +0000 (17:05 +0000)
commit2f99e889f02df9ef88fb1d26194eb2e8e725fda5
treebc9eab2b8fa885cada08e2592a5fa8ead8f6f083
parent79ac638e41abed1d8f46762ecd6d63a93d9bb382
runtime: de-duplicate coalescing code

Currently the code surrounding coalescing is duplicated between merging
with the span before the span considered for coalescing and merging with
the span after. This change factors out the shared portions of these
codepaths into a local closure which acts as a helper.

Change-Id: I7919fbed3f9a833eafb324a21a4beaa81f2eaa91
Reviewed-on: https://go-review.googlesource.com/c/158077
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