RFR: JDK-8298147: Clang warns about pointless comparisons

Thomas Stuefe stuefe at openjdk.org
Wed Dec 7 07:30:58 UTC 2022


On Wed, 7 Dec 2022 06:25:53 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Trivial fix for clang warnings. GET_CONTAINER_INFO_CPTR creates local buffers of the given size; comparing them with NULL will always yield the same result.
>
> These changes seem fine, but doesn't this then have a flow-on effect as these methods can themselves no longer return NULL?

Thanks for the review, @dholmes-ora

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

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


More information about the hotspot-runtime-dev mailing list