RFR: 8279887: 2 Null pointer dereference defect groups in os_posix.cpp

Coleen Phillimore coleenp at openjdk.java.net
Wed Jan 19 15:32:44 UTC 2022


On Wed, 19 Jan 2022 07:28:20 GMT, David Holmes <dholmes at openjdk.org> wrote:

> This is a false positive - you can only park the current thread hence it can never be NULL.

I don't think the static analysis tools can know that, but adding a comment and returning NULL seems to be a fix that can please both the static analysis tools and readers of the code.

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

PR: https://git.openjdk.java.net/jdk/pull/7129


More information about the hotspot-dev mailing list