]> Cypherpunks repositories - gostls13.git/commit
runtime: cache unrolled GC bitmask
authorDmitriy Vyukov <dvyukov@google.com>
Sun, 24 Aug 2014 08:04:51 +0000 (12:04 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Sun, 24 Aug 2014 08:04:51 +0000 (12:04 +0400)
commitb91223edd19590b4ac79ae14b66b8d5a80825e36
treea04c5c94dfa6788c40beb2217512c2db5dc76df0
parent651d0cf204da51eddec88c32c039d750ef7edbbd
runtime: cache unrolled GC bitmask
Cache unrolled GC bitmask for types up to 64/32K on 64/32-bit systems,
this corresponds to up to 4K cached bitmask.
Perf builders say that 2% of time is spent in unrollgcproginplace_m/unrollgcprog1
on http benchmark:
http://goperfd.appspot.com/log/f42045f45bf61a0da53b724a7c8567824a0ad6c9

LGTM=rsc
R=golang-codereviews, rsc
CC=golang-codereviews, khr, rlh
https://golang.org/cl/122680043
src/pkg/runtime/malloc.go
src/pkg/runtime/mgc0.h