]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: limit the number of simultaneously opened files to avoid EMFILE/ENFILE...
authorzhongtao.chen <chenzhongtao@126.com>
Tue, 22 Aug 2017 02:33:10 +0000 (10:33 +0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 14 Sep 2017 04:02:44 +0000 (04:02 +0000)
commit99414a5b1dca17a3778d110866881485ef45b0eb
tree6ba847b6bb32e7574d4c608a149640b2ad33d525
parent2a2e4dad33dfe75c3163ecdae264ec2fecfe5dfb
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>
src/cmd/compile/internal/gc/noder.go