From af76c807e27fa2d964b3b10cb2a07677554c9f3f Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sat, 13 May 2023 14:36:59 +0200 Subject: [PATCH] windows: re-enable parallelism This reverts https://github.com/tinygo-org/tinygo/pull/3525, because that change didn't seem to stop the CI failures we have been seeing. Instead, I've added thread support in https://github.com/tinygo-org/tinygo/pull/3130 which IIRC fixed most of the CI crashes. Re-enabling parallelism should improve the performance of TinyGo a bit on Windows. --- main.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/main.go b/main.go index a2c5611b..ffa660d0 100644 --- a/main.go +++ b/main.go @@ -1547,15 +1547,6 @@ func main() { defer pprof.StopCPUProfile() } - // Limit the number of threads to one. - // This is an attempted workaround for the crashes we're seeing in CI on - // Windows. If this change helps, it indicates there is a concurrency issue. - // If it doesn't, then there is something else going on. Either way, this - // should be removed once the test is done. - if runtime.GOOS == "windows" { - runtime.GOMAXPROCS(1) - } - switch command { case "build": pkgName := "."