Integrated: 8305922: [aix,linux] Avoid comparing 'this' to nullptr
Tyler Steele
tsteele at openjdk.org
Mon Apr 24 20:36:19 UTC 2023
On Wed, 12 Apr 2023 18:08:44 GMT, Tyler Steele <tsteele at openjdk.org> wrote:
> This PR removes the remaining 'this' vs. 'nullptr' checks from osThread_linux.cpp and osThread_aix.cpp which cause a build warning on AIX and Linux (when building with Clang). My grepping finds no other occurrences.
>
> As the warning indicates, `this` cannot be `nullptr` in well-formed C++ code. Previous issues have removed these checks, and I believe it makes sense to do so again in these places.
This pull request has now been integrated.
Changeset: 0dc03c9d
Author: Tyler Steele <tsteele at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/0dc03c9d544ac431a8932c4fee3f5f82b8fb64d2
Stats: 2 lines in 2 files changed: 0 ins; 2 del; 0 mod
8305922: [aix,linux] Avoid comparing 'this' to nullptr
Reviewed-by: mdoerr, dholmes
-------------
PR: https://git.openjdk.org/jdk/pull/13448
More information about the hotspot-runtime-dev
mailing list