runtime/debug: SetMaxThreads(maxInt) crashes program with "-1-thread limit" #16076
Labels
Milestone
Comments
(See also issue #4056.) |
The same program works fine with |
This is because of this line in proc.go:
We could change all the variables from |
CL https://golang.org/cl/31516 mentions this issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: