RFR: 8324242: Avoid null check for OopHandle::ptr_raw()

Johan Sjölen jsjolen at openjdk.org
Mon Jan 22 10:52:28 UTC 2024


On Sun, 21 Jan 2024 07:29:45 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> Please review this change to use OopHandle::is_empty() rather than comparing
> the result of OopHandle::ptr_raw() with nullptr.  While equivalent, the former
> is the intended API for such checks.  ptr_raw should only be used directly
> where it is actually needed.
> 
> Testing: mach5 tier1.

Oh, I didn't approve it in my last comment.

-------------

Marked as reviewed by jsjolen (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/17510#pullrequestreview-1836183417


More information about the hotspot-dev mailing list