Re: Proposal: track zlib native memory usage with NMTThomas Stüfe thomas.stuefe at gmail.com

2023-03-22 Thread Thomas Stüfe
I always meant to ask, why is it that we chose to dedicate the beginning of > the memory chunk to NMT, and not the end? > > If we used the end, then in this case with an unbalanced malloc/free, we > would still be OK. > > The end seems more natural to me and either way we need to track the size, >

Re: Proposal: track zlib native memory usage with NMTThomas Stüfe thomas.stuefe at gmail.com

2023-03-22 Thread Gerard Ziemski
> Hi all, > > I am currently working on https://bugs.openjdk.org/browse/JDK-8296360; I > was preparing the final PR [1], but then Alan did ask me to discuss this on > core-libs first. > > Backstory: > > NMT tracks hotspot native allocations but does not cover the JDK libraries > (small exception