https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96942

--- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Alexander Monakov from comment #14)
> > It adds 11 bytes to the size given to the constructor (for its internal
> > bookkeeping) and then rounds up to a power of two.
> 
> What is the purpose of this rounding up?

To request a power of two size from the upstream resource, so that we don't
e.g. ask for 4090 bytes and waste the end of a page.

It might make more sense to round up to a page boundary, or some other size
instead.

Reply via email to