]> Cypherpunks repositories - gostls13.git/commit
sync: remove the redundant logic on sync.(*Pool).Put
authorJason7602 <jansonzhe@gmail.com>
Mon, 1 Nov 2021 15:27:45 +0000 (23:27 +0800)
committerGopher Robot <gobot@golang.org>
Sun, 8 May 2022 17:23:05 +0000 (17:23 +0000)
commit507a44dc228a3817e7007f292a404fe6c9f66315
treef061bd58b69dae4687ce0b4a47bd268d1f853de1
parent4c565a5561e33e1d488116ea45c35d3ce408cf93
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>
src/sync/pool.go