1
0
mirror of https://github.com/golang/go synced 2024-11-06 13:46:16 -07:00
go/src/sync
Jason7602 507a44dc22 sync: remove the redundant logic on sync.(*Pool).Put
When the procUnpin is placed after shared.pushHead, there is
no need for x as a flag to indicate the previous process.

This CL can make the logic clear, and at the same time reduce
a redundant judgment.

Change-Id: I34ec9ba4cb5b5dbdf13a8f158b90481fed248cf5
Reviewed-on: https://go-review.googlesource.com/c/go/+/360059
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-05-08 17:23:05 +00:00
..
atomic sync/atomic: don't run 64-bit uintptr tests on 32-bit systems 2022-05-06 02:40:50 +00:00
cond_test.go
cond.go all: gofmt main repo 2022-04-11 16:34:30 +00:00
example_pool_test.go
example_test.go
export_test.go
map_bench_test.go
map_reference_test.go
map_test.go
map.go
mutex_test.go
mutex.go runtime: differentiate "user" and "system" throws 2022-04-28 16:50:31 +00:00
once_test.go
once.go all: gofmt main repo 2022-04-11 16:34:30 +00:00
pool_test.go
pool.go sync: remove the redundant logic on sync.(*Pool).Put 2022-05-08 17:23:05 +00:00
poolqueue.go
runtime2_lockrank.go
runtime2.go
runtime_sema_test.go
runtime.go
rwmutex_test.go
rwmutex.go runtime: differentiate "user" and "system" throws 2022-04-28 16:50:31 +00:00
waitgroup_test.go
waitgroup.go