sync: add more randomization to Pool with race detector #52360
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FeatureRequest
Issues asking for a new feature that does not need a proposal.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
RaceDetector
Milestone
sync.Pool
is an easy data structure to use incorrectly.Currently the
Pool
randomly drops items inrace
mode.We should add additional non-determinism such as:
This will slow down the implementation, but the point of
race
is to detect bugs, not have the best performance.The text was updated successfully, but these errors were encountered: