runtime: manage a pool of spanSetBlocks and free them eagerly
This change adds a global pool of spanSetBlocks to the spanSet data structure and adds support for eagerly freeing these blocks back to the pool if the block goes empty. This change prepares us to use this data structure in more places in the runtime by allowing reuse of spanSetBlock. Updates #37487. Change-Id: I0752226e3667a9e3e1d87c9b66edaedeae1ac23f Reviewed-on: https://go-review.googlesource.com/c/go/+/221180 Run-TryBot: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by:Austin Clements <austin@google.com>
Loading
Please sign in to comment