Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix jl_new_task to avoid allocating stack twice
If the user requested dedicated stack of a certain size, then `jl_new_task` immediately allocates the stack by invoking `jl_alloc_fiber`. However, it also later nulls `t->stkbuf`. As a result, `ctx_switch` invokes `jl_alloc_fiber` *again* to allocate another stack.
- Loading branch information