[Issue 17914] Accidental per-process limit of fiber uses
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Oct 24 22:40:45 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17914
--- Comment #1 from briancschott at gmail.com ---
Minimal test case:
void main()
{
import std.concurrency : Generator, yield;
import std.stdio : File, writeln;
auto f = File("/proc/sys/vm/max_map_count", "r");
ulong n;
f.readf("%d", &n);
writeln("/proc/sys/vm/max_map_count = ", n);
foreach (i; 0 .. n + 1000)
{
if (i % 1000 == 0)
writeln("i = ", i);
new Generator!int({ yield(1); });
}
}
--
More information about the Digitalmars-d-bugs
mailing list