1
0
mirror of https://github.com/golang/go synced 2024-11-11 22:40:22 -07:00

Revert "cmd/compile/internal/noder: limit the number of goroutine"

This reverts commit c274a7c03b.

Reason for revert: this can cause a compiler deadlock, and there's
no demonstrable benefit to making the change.

Change-Id: I42325ddea68d37db16fd0061c5baaee112b755b7
Reviewed-on: https://go-review.googlesource.com/c/go/+/308369
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
Matthew Dempsky 2021-04-08 05:48:34 +00:00
parent 8752454ece
commit 2123dfba65

View File

@ -46,8 +46,8 @@ func LoadPackage(filenames []string) {
noders[i] = &p
filename := filename
sem <- struct{}{}
go func() {
sem <- struct{}{}
defer func() { <-sem }()
defer close(p.err)
fbase := syntax.NewFileBase(filename)