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

G1: remove obsolete comment in HeapRegion::setup_heap_region_size

    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

      ```
        // The cast to int is safe, given that we've bounded region_size by
        // MIN_REGION_SIZE and MAX_REGION_SIZE.
        GrainBytes = region_size;
      ```

      Both variables are of `size_t` (changed in JDK-7095194); the comment was obsolete.

        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: