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

G1: Incorrect size unit in logging of G1CollectedHeap::alloc_archive_region

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • 22
    • hotspot
    • gc
    • b03

      The printed size use byte unit while the actual value are in words.
      ```
      if (reserved.word_size() <= word_size) {
        log_info(gc, heap)("Unable to allocate regions as archive heap is too large; size requested = %zu"
                            " bytes, heap = %zu bytes", word_size, reserved.word_size());
        return nullptr;
      }
      ```

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: