Unhandled oop in ProtectionDomainCacheTable::compute_hash

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 9
    • Component/s: hotspot
    • None
    • b21


      The callers to this function have unhandled oops but this function can safepoint.

      unsigned int ProtectionDomainCacheTable::compute_hash(oop protection_domain) {
      + // Identity hash can safepoint, so keep protection domain in a Handle.
         return (unsigned int)(protection_domain->identity_hash());
       }

      This is why we pass Handle whenever possible, since protection_domain is in a Handle up the call chain to this function.

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

              Created:
              Updated:
              Resolved: