RFR: JDK-8293114: GC should trim the native heap [v2]
Thomas Stuefe
stuefe at openjdk.org
Sat Sep 3 04:20:37 UTC 2022
On Fri, 2 Sep 2022 20:04:11 GMT, Zhengyu Gu <zgu 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.
-------------
PR: https://git.openjdk.org/jdk/pull/10085
More information about the hotspot-dev
mailing list