]> git.lizzy.rs Git - rust.git/commit
stop spawning so many tasks in guide-tasks
authorDaniel Micay <danielmicay@gmail.com>
Tue, 16 Sep 2014 04:45:29 +0000 (00:45 -0400)
committerDaniel Micay <danielmicay@gmail.com>
Tue, 16 Sep 2014 04:47:49 +0000 (00:47 -0400)
commit7ce2ea0d148a3a7c9ad0f156c8e08a2e6482265f
tree4f775ea7a2ecff4247a39f14a5a427882bf4f6b4
parent63eaba24d6a7f93061d63337ea1f7083ca892787
stop spawning so many tasks in guide-tasks

1000 tasks * 2MiB stack size -> 2GiB of virtual memory

On a 64-bit OS, a 32-bit executable has 4GiB available, but the kernel
gets half of the available address space so the limit is 2GiB on 32-bit.

Closes #17044
src/doc/guide-tasks.md