RFR: JDK-8293114: JVM should trim the native heap [v10]

Thomas Stuefe stuefe at openjdk.org
Fri Jul 14 09:00:13 UTC 2023


On Fri, 14 Jul 2023 08:45:04 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> > > Realized that in production, we would like to see why trimmer might be late. I think this would look even better: [trimnative-shipilev-2.patch](https://github.com/openjdk/jdk/files/12043977/trimnative-shipilev-2.patch)
> > 
> > 
> > I thought about this too, but you don't really want to know if it was suspended for every wait interval, but for every trim interval. In other words, you want to know how many trims had been moved up because a safepoint had been happening, and how many trims had been skipped due to pause.
> 
> Well, yes. Isn't that what my patch did?

I thought you wanted to collect overarching stats about how many trims got delayed. I see now you wanted to do something much simpler. Okay.

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

PR Comment: https://git.openjdk.org/jdk/pull/14781#issuecomment-1635533457


More information about the serviceability-dev mailing list