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

Make OopHandle constructor explicit

    XMLWordPrintable

    Details

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

      Backports

        Description

        OopHandle needs to control where the oop* that creates an OopHandle comes from. It must come from OopStorage. The implicit constructor risks code creating an OopHandle to use an oop* that is not in OopStorage. Freeing such an OopHandle would crash or be a hard to find bug.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                coleenp Coleen Phillimore
                Reporter:
                coleenp Coleen Phillimore
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: