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

Incorrect comments for ParallelCompactData::summarize_dense_prefix

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 17
    • None
    • hotspot
    • gc
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: