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

Aleksey Shipilev shade at openjdk.org
Fri Jul 14 08:47:24 UTC 2023


On Fri, 14 Jul 2023 05:28:15 GMT, Thomas Stuefe <stuefe 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?

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

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


More information about the serviceability-dev mailing list