RFR (XS) 8242638: Shenandoah: restore heap logging for uncommit
Zhengyu Gu
zgu at redhat.com
Tue Apr 14 13:27:47 UTC 2020
Looks good.
-Zhengyu
On 4/14/20 9:24 AM, Aleksey Shipilev wrote:
> Bug:
> https://bugs.openjdk.java.net/browse/JDK-8242638
>
> Fix:
>
> diff -r 72920184520f src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp
> --- a/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp Tue Apr 14 14:45:24 2020 +0200
> +++ b/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp Tue Apr 14 15:22:52 2020 +0200
> @@ -2870,5 +2870,5 @@
> void ShenandoahHeap::entry_uncommit(double shrink_before) {
> static const char *msg = "Concurrent uncommit";
> - ShenandoahConcurrentPhase gc_phase(msg);
> + ShenandoahConcurrentPhase gc_phase(msg, true /* log_heap_usage */);
> EventMark em("%s", msg);
>
> Testing: hotspot_gc_shenandoah, eyeballing logs
>
More information about the shenandoah-dev
mailing list