RFR: JDK-8293114: GC should trim the native heap [v2]
Zhengyu Gu
zgu at openjdk.org
Sat Sep 3 23:25:39 UTC 2022
On Sat, 3 Sep 2022 04:18:23 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> > Another question: does it have to create another thread? can it piggyback to e.g. `ServiceThread`?
>
> It does so on Shenandoah, but the problem is the time trimming takes. As I wrote, it can take <1ms to up to almost a second. You then block the service thread for that time. So, even on Shenandoah I am not sure I shouldn't use a different thread.
Yea, you probably should not use `ShenandoahControlThread`, it may delay GC from happening.
-------------
PR: https://git.openjdk.org/jdk/pull/10085
More information about the hotspot-gc-dev
mailing list