RFR: JDK-8151602: Make logging in refillLinearAllocBlockIfNeeded() available
Thomas Schatzl
thomas.schatzl at oracle.com
Thu Mar 10 10:28:07 UTC 2016
Hi Bengt,
On Thu, 2016-03-10 at 10:59 +0100, Bengt Rutisson wrote:
> Hi everyone,
>
> Could I have a couple of reviews for this change?
>
> http://cr.openjdk.java.net/~brutisso/8151602/webrev.00
> https://bugs.openjdk.java.net/browse/JDK-8151602
>
> In CompactibleFreeListSpace::refillLinearAllocBlockIfNeeded() we have
> this code:
>
> if (PrintMiscellaneous && Verbose) {
> if (blk->_word_size == 0) {
> warning("CompactibleFreeListSpace(prologue):: Linear
> allocation
> failure");
> }
>
> It is a bit strange to guard a warning() this way. Verbose is a
> develop flag so the warning is never printed in product builds. This
> is also the only use of PrintMiscellaneous in the GC code.
Wouldn't it be better to just remove the code then (maybe make an
assert out of it)? Apparently nobody ever cared about it anyway.
Thanks,
Thomas
More information about the hotspot-gc-dev
mailing list