]> Cypherpunks.ru repositories - gostls13.git/commit
[release-branch.go1.9] cmd/compile: limit the number of simultaneously opened files...
authorzhongtao.chen <chenzhongtao@126.com>
Tue, 22 Aug 2017 02:33:10 +0000 (10:33 +0800)
committerRuss Cox <rsc@golang.org>
Wed, 25 Oct 2017 20:22:53 +0000 (20:22 +0000)
commit5c48811aec6fab7979edcde4de09a0d2380fb175
treed0a807270f2c9895bfe69acf4afb16fcd007928e
parent8c7fa95ad3420779ecffc9c72afc82bf074c6a88
[release-branch.go1.9] cmd/compile: limit the number of simultaneously opened files to avoid EMFILE/ENFILE errors

If the Go packages with enough source files,it will cause EMFILE/ENFILE error,
Fix this by limiting the number of simultaneously opened files.

Fixes #21621

Change-Id: I8555d79242d2f90771e37e073b7540fc7194a64a
Reviewed-on: https://go-review.googlesource.com/57751
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-on: https://go-review.googlesource.com/63752
Run-TryBot: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/gc/noder.go