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

Inline derived CollectedHeap access for G1 and ParallelGC

    XMLWordPrintable

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b03

      Description

      G1 and ParallelGC (and others) have specific heap() functions that return the associated derived CollectedHeap object. These functions are all defined in .cpp files, so (most) callers will make an out of line function call, even though the implementation is pretty trivial (esp. in release builds).

      At least G1 and ParallelGC have calls to these functions in relatively performance critical locations. It would be better if they were inlined, at least for these collectors.

      Also, these functions are nearly identical for each collector; it would be nice to have a helper function they can all use.

        Attachments

          Activity

            People

            Assignee:
            kbarrett Kim Barrett
            Reporter:
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: