This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


* 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]