RFR: JDK-8293114: JVM should trim the native heap
Aleksey Shipilev
shade at openjdk.org
Thu Jul 6 10:56:52 UTC 2023
On Thu, 6 Jul 2023 10:47:25 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> About Pause in all VM ops, an alternative would be to just check in the trimmer if we are at safepoint, and if yes treat it as pause. I'll see if that's easier (I'm worried about pulling a mutex or atomic increasing the pauser variable in every VM op we run).
Oh yes, I like it. We can just check `SafepointSynchronize::is_at_safepoint()` and `SafepointSynchronize::is_synchronizing()`. Would be even better, because we could stop trimming when there is safepoint sync pending. Makes the whole thing much less intrusive.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14781#issuecomment-1623462984
More information about the serviceability-dev
mailing list