www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Allocate more space for fiber if gardpage hit?

reply Kaitlyn Emmons <katemmons0 gmail.com> writes:
Is it possible on windows to dynamically size fibers?
Apr 23 2020
parent reply Kaitlyn Emmons <katemmons0 gmail.com> writes:
On Friday, 24 April 2020 at 04:50:12 UTC, Kaitlyn Emmons wrote:
 Is it possible on windows to dynamically size fibers?
follow up question, if i allocate way more space for a bunch of fibers then they need, will the space just get reserved? EG if i have a fiber that never goes beyond 4 pages but i create it with 32... will the later pages ever get assigned physical memory?
Apr 23 2020
parent Crayo List <crayolist gmail.com> writes:
On Friday, 24 April 2020 at 04:58:52 UTC, Kaitlyn Emmons wrote:
 On Friday, 24 April 2020 at 04:50:12 UTC, Kaitlyn Emmons wrote:
 Is it possible on windows to dynamically size fibers?
follow up question, if i allocate way more space for a bunch of fibers then they need, will the space just get reserved? EG if i have a fiber that never goes beyond 4 pages but i create it with 32... will the later pages ever get assigned physical memory?
It looks like it will allocate all. https://github.com/dlang/druntime/blob/e71d88ca4eff9fafeba4438301158b0c0fafa284/src/core/thread/fiber.d#L974
Apr 25 2020