Thread overview
Allocate more space for fiber if gardpage hit?
Apr 24, 2020
Kaitlyn Emmons
Apr 24, 2020
Kaitlyn Emmons
Apr 25, 2020
Crayo List
April 24, 2020
Is it possible on windows to dynamically size fibers?
April 24, 2020
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?


April 25, 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