]> Cypherpunks repositories - gostls13.git/commit
[dev.garbage] runtime: simplify nextFreeFast so it is inlined
authorRick Hudson <rlh@golang.org>
Fri, 29 Apr 2016 16:09:36 +0000 (12:09 -0400)
committerRick Hudson <rlh@golang.org>
Fri, 29 Apr 2016 16:47:11 +0000 (16:47 +0000)
commite9eaa181fcadc2162baa62ccd8bfeb610acfdd55
tree28ee244eff4327d434911a6d789864679b410033
parentb3579c095e00f89d8c92c2aa4fb4af222a96f429
[dev.garbage] runtime: simplify nextFreeFast so it is inlined

nextFreeFast is currently not inlined by the compiler due
to its size and complexity. This CL simplifies
nextFreeFast by letting the slow path handle (nextFree)
handle a corner cases.

Change-Id: Ia9c5d1a7912bcb4bec072f5fd240f0e0bafb20e4
Reviewed-on: https://go-review.googlesource.com/22598
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
src/runtime/malloc.go