forked from golang/go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 golang#37487. Change-Id: I0752226e3667a9e3e1d87c9b66edaedeae1ac23f Reviewed-on: https://go-review.googlesource.com/c/go/+/221180 Run-TryBot: Michael Knyszek <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Austin Clements <[email protected]>
- Loading branch information
1 parent
812be51
commit 317f750
Showing
1 changed file
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters