Date: Thu, 31 Jul 2025 16:23:08 +0100
It's useful to know a standard range to apply. For example libraries like
boost could detect if pointers passed to them are in said range and catch
the problem before a segfault can happen. They can in turn exit the thread
but not the whole app/game/etc.
On Thu, 31 Jul 2025 at 16:05, Thiago Macieira <thiago_at_[hidden]> wrote:
> On Thursday, 31 July 2025 08:08:51 Pacific Daylight Time zxuiji wrote:
> > So we're designing for lala land where any and all silly systems exist
> are
> > we? Just define a minimum based on real world standards which as far as
> I'm
> > aware is 512 minimum which is reasonable enough for a `MIN_PAGE_SIZE 512`
> > macro and certainly reasonable for a `MAX_INVALID_ADDRESS ((void*)512)`
> > macro
>
> Why do we need to change anything? What's the motivation?
>
> We know that effectively the first and last pages are unavailable for any
> system. So if you need to do some pointer math and know they are invalid,
> you
> can.
>
> But why does the *standard* need that?
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Principal Engineer - Intel Platform & System Engineering
>
>
>
>
boost could detect if pointers passed to them are in said range and catch
the problem before a segfault can happen. They can in turn exit the thread
but not the whole app/game/etc.
On Thu, 31 Jul 2025 at 16:05, Thiago Macieira <thiago_at_[hidden]> wrote:
> On Thursday, 31 July 2025 08:08:51 Pacific Daylight Time zxuiji wrote:
> > So we're designing for lala land where any and all silly systems exist
> are
> > we? Just define a minimum based on real world standards which as far as
> I'm
> > aware is 512 minimum which is reasonable enough for a `MIN_PAGE_SIZE 512`
> > macro and certainly reasonable for a `MAX_INVALID_ADDRESS ((void*)512)`
> > macro
>
> Why do we need to change anything? What's the motivation?
>
> We know that effectively the first and last pages are unavailable for any
> system. So if you need to do some pointer math and know they are invalid,
> you
> can.
>
> But why does the *standard* need that?
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Principal Engineer - Intel Platform & System Engineering
>
>
>
>
Received on 2025-07-31 15:09:04