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

Unhandled oop in ProtectionDomainCacheTable::compute_hash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9
    • 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.

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

              Created:
              Updated:
              Resolved: