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

Coleen Phillimore coleenp at openjdk.org
Mon Jan 22 13:46:27 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.

Answer to my previous question.  I guess not.

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

Marked as reviewed by coleenp (Reviewer).

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


More information about the hotspot-dev mailing list