Allocate more space for fiber if gardpage hit?

Crayo List crayolist at gmail.com
Sat Apr 25 19:18:44 UTC 2020


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


More information about the Digitalmars-d-learn mailing list