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

DefNew does not log heap change information when a promotion failure occurs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: hs25
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b02

      Description

      Output may look like this:

      [GC (Allocation Failure) 243779K->175288K(253440K), 0.0232570 secs]
      [GC (Allocation Failure) , 0.0831990 secs]
      [Full GC (Allocation Failure) 253440K->118630K(253440K), 0.2981190 secs]

      The second GC got a promotion failure and did not print the heap change information.

      This is due to the DefNew code not printing the size information when a promotion failure occurs.

      In DefNewGeneration::collect() we have this code:

        if (!_promotion_failed) {
          ...
          gch->print_heap_change(gch_prev_used);
          ...
        } else {
          ...
        }

      Impact=Low, just a logging issue
      Likelihood=Medium, will happen for every promotion failure with DefNew if logging is enabled
      Workaround=Low, Can get the information from PrintHeapAtGC

      ILW=LML -> P5

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: