RFR: JDK-8298147: Clang warns about pointless comparisons

David Holmes dholmes at openjdk.org
Wed Dec 7 06:27:56 UTC 2022


On Tue, 6 Dec 2022 17:44:07 GMT, Thomas Stuefe <stuefe 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?

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

Marked as reviewed by dholmes (Reviewer).

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


More information about the hotspot-runtime-dev mailing list