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

Incorrect comments for ParallelCompactData::summarize_dense_prefix

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b15

      Description

      For `ParallelCompactData::summarize_dense_prefix(HeapWord* beg, HeapWord* end)`, the comment says `beg` should be region aligned but not `end`. However, the method body starts with asserting both need to be region aligned.

      ```
        assert(region_offset(beg) == 0, "not RegionSize aligned");
        assert(region_offset(end) == 0, "not RegionSize aligned");
      ```

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: