G1CollectedHeap::expand() returns
regions_to_expand > 0
which is true if we wanted to expand; the correct value would be
expanded_by > 0;
to return if the heap has actually been expanded.
There is no particular impact on this except for some (minimal) extra work done.
Found by Jonathan Joo (http://mail.openjdk.java.net/pipermail/hotspot-gc-dev/2021-October/037149.html)
regions_to_expand > 0
which is true if we wanted to expand; the correct value would be
expanded_by > 0;
to return if the heap has actually been expanded.
There is no particular impact on this except for some (minimal) extra work done.
Found by Jonathan Joo (http://mail.openjdk.java.net/pipermail/hotspot-gc-dev/2021-October/037149.html)