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

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • hotspot
    • gc
    • b07

      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.

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

              Created:
              Updated:
              Resolved: