On Thu, 6 Jul 2023 10:47:25 GMT, Thomas Stuefe <stu...@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

Reply via email to