RFR(XS): 8193521: glibc wastes memory with default configuration

Andrew Haley aph at redhat.com
Thu Dec 14 19:06:04 UTC 2017

On 14/12/17 18:51, Doerr, Martin wrote:
> And I also assume that most JVM users don't know that the JVM has own arena implementation etc. which makes glibc arenas under the hood useless for these kind of allocations. 
> So I think it would be nice if we could help these people.

So, here's a radical thought: why are we using malloc() at all?
Shouldn't we be calling mmap() and then basing our arena in that?

Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671

More information about the hotspot-runtime-dev mailing list