aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.go
diff options
context:
space:
mode:
authorJay Conrod <jayconrod@google.com>2021-02-17 17:31:22 -0500
committerJay Conrod <jayconrod@google.com>2021-03-09 18:38:07 +0000
commit6ee1506769b24d99e27f9a6a9c99e9b7143112bf (patch)
tree9b355ce573b895539d991c1cec2c24b335cd649a /src/testing/testing.go
parentd4825819fe58e8531c7fcdf4ce27cec63824db25 (diff)
downloadgo-6ee1506769b24d99e27f9a6a9c99e9b7143112bf.tar.xz
[dev.fuzz] internal/fuzz: fix deadlock with multiple workers
CoordinateFuzzing now continues to run after discovering a crasher. It waits until all workers have terminated before returning. This fixes a deadlock that occurred when multiple workers discovered crashers concurrently. CoordinateFuzzing would receive one crasher, close doneC (telling workers to stop), then wait for workers to stop without receiving more crashers. Other workers would block sending crashers. Change-Id: I55a64aac0e6e43f5e36b9d03c15051c3d5debb20 Reviewed-on: https://go-review.googlesource.com/c/go/+/293369 Trust: Jay Conrod <jayconrod@google.com> Trust: Katie Hockman <katie@golang.org> Run-TryBot: Jay Conrod <jayconrod@google.com> Reviewed-by: Katie Hockman <katie@golang.org>
Diffstat (limited to 'src/testing/testing.go')
0 files changed, 0 insertions, 0 deletions