[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-hotspot-runtime-dev
Subject:    Re: RFR: JDK-8282382: Report glibc malloc tunables in error reports
From:       Thomas Stuefe <stuefe () openjdk ! java ! net>
Date:       2022-02-25 19:00:53
Message-ID: U1KdrTOn27hYxO8UFW4CSZsML83Mcrq0hhgrSlpJJM8=.f43cda4b-23e2-4bcb-bb0a-bf1198f6325b () github ! com
[Download RAW message or body]

On Fri, 25 Feb 2022 14:05:03 GMT, Zhengyu Gu <zgu@openjdk.org> wrote:

> > On Linux/glibc platforms, the hs-err file should report the malloc tunables, or \
> > at least MALLOC_ARENA_MAX, since that one can have a significant effect on \
> > footprint or malloc contention for a VM. 
> > This patch adds this printout as a one-liner into hs-err files and jcmd VM.info \
> > reports: 
> > 
> > Process Memory:                                                                   \
> >                 
> > ...
> > glibc malloc tunables: MALLOC_PERTURB_=40, MALLOC_ARENA_MAX=1
> > 
> > 
> > If the tunables are default, we print `glibc malloc tunables: (default)`.
> > 
> > 
> > Thanks, Thomas
> 
> src/hotspot/os/linux/os_linux.cpp line 2169:
> 
> > 2167: #endif // __GLIBC__
> > 2168: 
> > 2169: #ifdef __GLIBC__
> 
> You can merge these two `#ifdef __GLIBC__` blocks.

Will do.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7620


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic