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

Avoid null check for OopHandle::ptr_raw()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • hotspot
    • b07

      There are several places where an OopHandle is checked for having the underlying pointer by comparing the result of ptr_raw() with nullptr. But OopHandle provides a named API for exactly that kind of test - is_empty() (which some other places already use). All such ptr_raw comparisons should instead be using is_empty.

            kbarrett Kim Barrett
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: