Merge pull request #3970 from benbuzbee:gomaxprocs

PiperOrigin-RevId: 335516972
This commit is contained in:
gVisor bot
2020-10-05 16:00:01 -07:00
+1
View File
@@ -282,6 +282,7 @@ func New(args Args) (*Loader, error) {
args.NumCPU = runtime.NumCPU()
}
log.Infof("CPUs: %d", args.NumCPU)
runtime.GOMAXPROCS(args.NumCPU)
if args.TotalMem > 0 {
// Adjust the total memory returned by the Sentry so that applications that