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

Refactor HeapRegionManager::find_unavailable_from_idx to simplify expand_at

    Details

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

      Description

      Currently find_unavailable_from_idx uses multiple while loops to figure out where we have unavailable regions, this could be simplified by using get_next_zero_offset and get_next_one_offset. When having the start and end of the range of unavailable regions this can be returned to expand_at which can then also be simplified.

        Attachments

          Activity

            People

            • Assignee:
              sjohanss Stefan Johansson
              Reporter:
              sjohanss Stefan Johansson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: