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

G1: Merge multiple calls of get_next_marked_addr in HeapRegion::oops_on_memregion_iterate_in_unparsable

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 20
    • 20
    • hotspot
    • gc
    • b07

    Description

      In `HeapRegion::oops_on_memregion_iterate_in_unparsable`:

      ```
        if (!bitmap->is_marked(cur)) {
          cur = bitmap->get_next_marked_addr(cur, end);
        }

        while (cur != end) {
          ...
          cur = bitmap->get_next_marked_addr(cur, end);
        }
        ...
      ```

      Both this method and `get_next_marked_addr` are annotated with `inline`. Merge these two call sites into one to reduce #instruction in the assembly.

      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: