[PATCH] Set SHMLBA to page size on hppa (BZ locale/19838)

Florian Weimer fw@deneb.enyo.de
Sun Apr 16 21:11:00 GMT 2017


* John David Anglin:

> On 2017-04-16, at 4:00 PM, Andreas Schwab wrote:
>
>> On Apr 16 2017, John David Anglin <dave.anglin@bell.net> wrote:
>> 
>>> +#define SHMLBA		(__getpagesize ())
>> 
>> SHMLBA must be a constant.
>
>
> Are you sure?  __getpagesize() is used on some other targets including x86.

Well, we should probably fix that.

I find it difficult to believe that we will ever get anything but 4K
pages on x86-64 because much too much would break as a result.

But it seems to me that POSIX is wrong here because the page size
isn't a context in other contexts, and as you describe, just having
some arbitrary multiple of the actual page size tends to cause
problems.



More information about the Libc-alpha mailing list