]> Cypherpunks repositories - gostls13.git/commit
runtime: make nextFreeFast inlinable
authorIlya Tocar <ilya.tocar@intel.com>
Wed, 20 Sep 2017 18:09:08 +0000 (13:09 -0500)
committerIlya Tocar <ilya.tocar@intel.com>
Wed, 20 Sep 2017 20:27:13 +0000 (20:27 +0000)
commit101fbc2c829beadacefdad1c852e0888e2f16d4d
treec2de035c64aaf9199ca6ccb443631bad5aec047e
parent55ac5b50b079b14bcab4dc1a971d84516cd4bf75
runtime: make nextFreeFast inlinable

https://golang.org/cl/22598 made nextFreeFast inlinable.
But during https://golang.org/cl/63611 it was discovered, that it is no longer inlinable.
Reduce number of statements below inlining threshold to make it inlinable again.
Also update tests, to prevent regressions.
Doesn't reduce readability.

Change-Id: Ia672784dd48ed3b1ab46e390132f1094fe453de5
Reviewed-on: https://go-review.googlesource.com/65030
Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
src/cmd/compile/internal/gc/inl_test.go
src/runtime/malloc.go