-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Error: 'assertion failed: libc::CloseHandle(native) != 0' if integer is too high. #13589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It seems that we are currently not checking for the error of @mdinger By the way, the default runtime (libnative) is not designed for spawning lots of tasks. Consider using libgreen for that; the runtime guide will give more information about what is a runtime and how you can switch it. |
Thanks for the tip. I'll look into it. |
On windows, correctly check for errors when spawning threads, and on both windows and unix handle the error more gracefully rather than printing an opaque assertion failure. Closes rust-lang#13589
On windows, correctly check for errors when spawning threads, and on both windows and unix handle the error more gracefully rather than printing an opaque assertion failure. Closes #13589
Code:
Compile and run:
This works with 1,000 but not 100,000. I'm using Rust 0.10 on Win 7. I didn't try nightlies.
The text was updated successfully, but these errors were encountered: