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

G1: fix incorrect region type documentation in HeapRegionType

    XMLWordPrintable

    Details

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

      Description

      In `class HeapRegionType`:

      ```
        // 01000 0 [16] Old Mask
        //
        // 10000 0 [32] Archive Mask
        // 11100 0 [56] Open Archive
        // 11100 1 [57] Closed Archive
        ...
          ArchiveMask = 32,
          OpenArchiveTag = ArchiveMask | PinnedMask,
          ClosedArchiveTag = ArchiveMask | PinnedMask + 1
      ```

      Open/Closed Archive should have not Old Mask. The code is correct, but the documentation is incorrect.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: