Comment #1 by andrej.mitrovich — 2014-04-26T20:01:40Z
There is core.sys.posix.sys.shm.__getpagesize
I guess you want a single wrapper for all platforms though?
Comment #2 by dmitry.olsh — 2014-04-26T20:12:50Z
> There is core.sys.posix.sys.shm.__getpagesize
Actually on POSIX it's obtained via sysconf and _SC_PAGESIZE.
Anyway I guess the point is that collector need to know page size anyway, and there is a global hidden somewhere deep that holds this size.
Comment #3 by schveiguy — 2018-05-04T10:41:45Z
(In reply to Dmitry Olshansky from comment #2)
> Anyway I guess the point is that collector need to know page size anyway,
> and there is a global hidden somewhere deep that holds this size.
Was about to add an issue to suggest we expose this immutable. It's here:
https://github.com/dlang/druntime/blob/86cd40a036a67d9b1bff6c14e91cba1e5557b119/src/core/thread.d#L3619
Can I make a pull to provide access to this somewhere public? Alternatively, we could just make the immutable public.
Comment #4 by robert.schadek — 2024-12-07T13:32:59Z