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

Remove the static instance variable SharedHeap:: _sh

    Details

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

      Backports

        Description

        SharedHeap kept a reference to the actual instance (of type GenCollectedHeap or G1CollectedHeap). This instance is stored both in Universe and in GenCollectedHeap or G1CollectedHeap too. Instead of code accessing the generic version SharedHeap::heap() we can make the code access the specific version in GenCollectedHeap::heap() or G1CollectedHeap::heap().

        This removes the need for storing the instance in SharedHeap too.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  brutisso Bengt Rutisson (Inactive)
                  Reporter:
                  brutisso Bengt Rutisson (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: