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

Kim Barrett kbarrett at openjdk.org
Thu Jan 25 05:46:36 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.

This pull request has now been integrated.

Changeset: 3059c3b6
Author:    Kim Barrett <kbarrett at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/3059c3b69ec8fb7cefd740bc2eb52b5ca5390ae1
Stats:     12 lines in 4 files changed: 0 ins; 1 del; 11 mod

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

Reviewed-by: shade, jsjolen, coleenp

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

PR: https://git.openjdk.org/jdk/pull/17510


More information about the hotspot-dev mailing list