Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8151602

Remove logging from refillLinearAllocBlockIfNeeded()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • gc
    • b115

      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.

      Another strange thing about this logging is that is says "(prologue)" but refillLinearAllocBlockIfNeeded() is called from three places:

      CompactibleFreeListSpace::gc_prologue()
      CompactibleFreeListSpace::reset_after_compaction()
      CompactibleFreeListSpace::sweep_completed()

            brutisso Bengt Rutisson (Inactive)
            brutisso Bengt Rutisson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: