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

David Holmes dholmes at openjdk.java.net
Thu Jan 20 12:56:48 UTC 2022


On Thu, 20 Jan 2022 10:04:18 GMT, Christian Hagedorn <chagedorn at openjdk.org> wrote:

> Could turning this into a sanity assertion check with the comment as a failure message be an option instead?

You mean as a way to circumvent the tool? Perhaps - though I would not want to do that either as this is a problem that could be seen in many call-chains that use JVM_ENTRY (and other cases) to get the "thread". In any case this has been reported as a false positive now.

What I may do is a RFE to add `current_thread_from_jni_environment` which will never return NULL and so avoid the issue altogether.

Cheers,
David

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

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


More information about the hotspot-dev mailing list