RFR: JDK-8314588: gc/metaspace/TestMetaspaceInitialization.java failed "assert(capacity_until_gc >= committed_bytes) failed: capacity_until_gc: 3145728 < committed_bytes: 3211264"
Thomas Stuefe
stuefe at openjdk.org
Fri Oct 20 15:24:47 UTC 2023
On Fri, 20 Oct 2023 15:07:52 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
> Your explanation makes sense. So if some GC decides to shrink metaspace, decrements capacity_until_gc, we'll just return zero for allowed expansion and force the GC if until the number of committed bytes goes below that? It seems like it might cause too many GCs. I wonder if the code should be removed in the future, since what it does is odd.
Yes, this decrementing looks odd. It should not be allowed to decrement below what's committed, certainly.
Thanks @coleenp and @dholmes-ora
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16216#issuecomment-1772937137
More information about the hotspot-runtime-dev
mailing list