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

Make OopHandle constructor explicit

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 15
    • 15
    • hotspot
    • b27

        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.

              coleenp Coleen Phillimore
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: