RFR(XS): 8193521: glibc wastes memory with default configuration
adinn at redhat.com
Fri Dec 15 09:56:05 UTC 2017
On 14/12/17 19:06, Andrew Haley wrote:
> 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?
The JVM does that almost all of the time. My guess is that the
difference Martin is seeing is down to malloc operations done outside
Senior Principal Software Engineer
Red Hat UK Ltd
Registered in England and Wales under Company Registration No. 03798903
Directors: Michael Cunningham, Michael ("Mike") O'Neill, Eric Shander
More information about the hotspot-runtime-dev