This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Set SHMLBA to page size on hppa (BZ locale/19838)
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: John David Anglin <dave dot anglin at bell dot net>
- Cc: Andreas Schwab <schwab at linux-m68k dot org>, GNU C Library <libc-alpha at sourceware dot org>, Carlos O'Donell <carlos at redhat dot com>, Mike Frysinger <vapier at gentoo dot org>, Aurelien Jarno <aurelien at aurel32 dot net>, Helge Deller <deller at gmx dot de>
- Date: Sun, 16 Apr 2017 23:11:08 +0200
- Subject: Re: [PATCH] Set SHMLBA to page size on hppa (BZ locale/19838)
- Authentication-results: sourceware.org; auth=none
- References: <E9292D0C-BC4F-45BC-919C-290E3195FF13@bell.net> <87r30snmw3.fsf@linux-m68k.org> <F2A84F2D-861E-4288-8C1A-6E98D8F2A365@bell.net>
* 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.