-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
document the optional argument of the Task
constructor
#55005
Comments
The nice thing about making the |
Just as a warning though, you will consume substantially more memory (both physical and virtual) if you use this option, as it forces eager allocation of a stack that may never get used. Use with some care. |
Oh. I didn't think it'd work like that. |
It feels surprising that memory is allocated differently between default stack size limit and custom stack size limit. How hard would it be to turn off eager allocations here? |
I'm also confused because julia> Task(() -> sleep(10), 10 * 1024 ^ 4) |> schedule |> fetch doesn't OOM... |
Fixes JuliaLang#55005 and helps work around issues discussed in JuliaLang#54998.
The optional
Int
parameter seems to determine the stack size of theTask
, but its not documented at all.julia/base/task.jl
Line 5 in 1193997
The text was updated successfully, but these errors were encountered: