Thread overview
[Issue 11372] getpagesize() should be in core.memory
Apr 26, 2014
Andrej Mitrovic
Apr 26, 2014
Dmitry Olshansky
Dec 17, 2022
Iain Buclaw
April 26, 2014
https://issues.dlang.org/show_bug.cgi?id=11372

Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich@gmail.com

--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> ---
There is core.sys.posix.sys.shm.__getpagesize

I guess you want a single wrapper for all platforms though?

--
April 26, 2014
https://issues.dlang.org/show_bug.cgi?id=11372

Dmitry Olshansky <dmitry.olsh@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.olsh@gmail.com

--- Comment #2 from Dmitry Olshansky <dmitry.olsh@gmail.com> ---
> 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.

--
May 04, 2018
https://issues.dlang.org/show_bug.cgi?id=11372

Steven Schveighoffer <schveiguy@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy@yahoo.com

--- Comment #3 from Steven Schveighoffer <schveiguy@yahoo.com> ---
(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.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=11372

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

--