[Issue 17914] [Reg 2.075] Fibers guard page uses a lot more memory mappings

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu Summary|Accidental pe

[Issue 17914] [Reg 2.075] Fibers guard page uses a lot more memory mappings

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914 Steven Schveighoffer changed: What|Removed |Added CC||schvei...@yahoo.com --- Comment #3 fr

[Issue 17914] [Reg 2.075] Fibers guard page uses a lot more memory mappings

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914 --- Comment #4 from Martin Nowak --- (In reply to Steven Schveighoffer from comment #3) > > I'd err on the side of memory safety. Stack overflows are an actual problem > > with Fibers and hard&time-consuming to debug. > > Except this breaks existing

[Issue 17914] [Reg 2.075] Fibers guard page uses a lot more memory mappings

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914 --- Comment #5 from briancsch...@gmail.com --- > The problem is, this either break toy code that just > creates lots of useless Fibers or heavy production code > that actually needs 30K Fibers. That's not entirely accurate. I found this because the r

[Issue 17914] [Reg 2.075] Fibers guard page uses a lot more memory mappings

2017-10-26 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914 --- Comment #6 from Steven Schveighoffer --- (In reply to briancschott from comment #5) > That's not entirely accurate. I found this because the range implementation > for a complex multi-dimensional tree structure was implemented as a > std.concurre

[Issue 17914] [Reg 2.075] Fibers guard page uses a lot more memory mappings

2017-10-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914 Nemanja Boric <4bur...@gmail.com> changed: What|Removed |Added CC||4bur...@gmail.com --- Com

[Issue 17914] [Reg 2.075] Fibers guard page uses a lot more memory mappings

2017-10-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914 --- Comment #8 from Martin Nowak --- We could keep track of the number of unfinalized Fibers with guard pages and trigger a GC collection when reaching 30K, but that's too hacky for my taste. > We don't actually need 30k fibers. We need one fiber at

[Issue 17914] [Reg 2.075] Fibers guard page uses a lot more memory mappings

2017-10-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914 --- Comment #9 from Martin Nowak --- If scoped isn't enough, you could use automem (~master or the next release) for ref-counted classes. http://code.dlang.org/packages/automem import automem.ref_counted; auto gen = RefCounted!(Generator!int)({

[Issue 17914] [Reg 2.075] Fibers guard page uses a lot more memory mappings

2017-10-30 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914 --- Comment #10 from anonymous4 --- Judging by the code Generator can just destroy itself on termination. It's not reusable, is it? --

[Issue 17914] [Reg 2.075] Fibers guard page uses a lot more memory mappings

2017-11-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914 --- Comment #11 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/9fee0ca6365408d753aedb517c0896af36966b65 Merge pull request #1966 from nemanja-boric-socioman

[Issue 17914] [Reg 2.075] Fibers guard page uses a lot more memory mappings

2017-11-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914 Steven Schveighoffer changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Issue 17914] [Reg 2.075] Fibers guard page uses a lot more memory mappings

2017-11-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914 --- Comment #13 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/1c12d6d59e6a3eccf42efe379066c0a9c658fa36 Add std.concurrency.Generator overloads to accept Fiber'

[Issue 17914] [Reg 2.075] Fibers guard page uses a lot more memory mappings

2017-11-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914 github-bugzi...@puremagic.com changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|-

[Issue 17914] [Reg 2.075] Fibers guard page uses a lot more memory mappings

2017-11-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914 --- Comment #14 from github-bugzi...@puremagic.com --- Commit pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/9fee0ca6365408d753aedb517c0896af36966b65 Merge pull request #1966 from nemanja-boric-socioman

[Issue 17914] [Reg 2.075] Fibers guard page uses a lot more memory mappings

2017-12-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17914 --- Comment #15 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/1c12d6d59e6a3eccf42efe379066c0a9c658fa36 Add std.concurrency.Generator overloads to accept Fiber'