[jdk11u-dev] Withdrawn: 8310451: CMS MxBean reports zero memory usage
duke
duke at openjdk.org
Fri Aug 18 18:50:31 UTC 2023
On Thu, 22 Jun 2023 13:28:55 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:
> CMS GC notification sometimes reports zero memory usages, because background sweep GC overlaps regular GC, that results consecutive gc end calls. The first gc end call pushes correct GC stats info, then reset current GC stats info. When the second gc end call arrives, there is no data to report `(gc index == 0)`, but it pushes notification anyway.
>
> The patch avoids to push the second notification if there is no data available.
>
> Current jdk head has the same code, but none of other GCs returns `gc index == 0`, except CMS.
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.org/jdk11u-dev/pull/1986
More information about the jdk-updates-dev
mailing list