[PATCH v2] support: Align the repeated blob mappings to SHMLBA

Stian Halseth stian@itx.no
Tue Nov 3 12:00:23 GMT 2026


Hi Andreas,

On Tue, 2026-11-03 at 12:43 +0100, Andreas Schwab wrote:
> On Nov 03 2026, Stian Halseth wrote:
> 
> > +  /* The file mappings below are shared and must be aligned to SHMLBA. 
> > */
> > +  while (stride_size % SHMLBA != 0)
> > +    stride_size += minimum_stride_size (page_size, element_size);
> 
> Wouldn't it work to use SHMLBA instead of page_size in the first place?
> 

Yes, that is simpler. 

I tried now using MAX (page_size, SHMLBA), since some targets define SHMLBA as
a constant that can be smaller than a large page. Tested on sparc64 and
x86_64, same tests.

Sending a v3. Let me know if the turnaround is too quick. It's small changes,
so quick to implement and test while I have everything setup here.

/Stian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20261103/5cb64e7c/attachment.sig>


More information about the Libc-alpha mailing list