]> Cypherpunks repositories - gostls13.git/commit
sync: internal dynamically sized lock-free queue for sync.Pool
authorAustin Clements <austin@google.com>
Fri, 1 Mar 2019 19:54:00 +0000 (14:54 -0500)
committerAustin Clements <austin@google.com>
Fri, 5 Apr 2019 18:49:04 +0000 (18:49 +0000)
commit57bb7be4b171a0c7ebf80467306c91e5ed8b2e84
tree1921016a8d240a9fd61bf9e76ab2686ef138a814
parent2b605670020fc637e20a609b1dc86c1f0e7afdd1
sync: internal dynamically sized lock-free queue for sync.Pool

This adds a dynamically sized, lock-free, single-producer,
multi-consumer queue that will be used in the new Pool stealing
implementation. It's built on top of the fixed-size queue added in the
previous CL.

For #22950, #22331.

Change-Id: Ifc0ca3895bec7e7f9289ba9fb7dd0332bf96ba5a
Reviewed-on: https://go-review.googlesource.com/c/go/+/166958
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/sync/export_test.go
src/sync/pool_test.go
src/sync/poolqueue.go