You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same program works fine with int(^uint32(0) >> 1) as a workaround, but the arbitrary 32-bit limit is surprising when I'm trying to write a call that says "let me use as many threads as I want".
We could change all the variables from int32 to int, or, probably just as good in practice, use the maximum int32 value here if the argument to setMaxThreads is larger.
According to https://golang.org/pkg/runtime/debug/#SetMaxThreads, this program should be able to spawn essentially as many threads as it wants:
Instead, the runtime kills it immediately:
The text was updated successfully, but these errors were encountered: