page size in druntime is a mess

Sean Kelly sean at invisibleduck.org
Sun Mar 18 08:09:51 PDT 2012


On Mar 18, 2012, at 7:12 AM, deadalnix <deadalnix at gmail.com> wrote:

> Page size in druntime is sometime a constant (4Kb), sometime calculated, often assumed to be a compile time constant.
> 
> druntime should define a proper, authoritative, place to calculate that page size, and then use the page calculated here.
> 
> I did some tests today, and it require quite a lot of changes. But it is mandatory to run D on any system where the page size isn't 4Kb.
> 
> So first question, where this should be calculated ? In core.memory ?

rt.memory possibly. That or core.memory. 


More information about the Digitalmars-d mailing list