RFR: 8315890: Attempts to load from nullptr in instanceKlass.cpp and unsafe.cpp [v2]
Coleen Phillimore
coleenp at openjdk.org
Mon Oct 30 20:28:31 UTC 2023
On Mon, 30 Oct 2023 20:19:45 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:
>> Calls in instanceKlass.cpp and unsafe.cpp try to call an atomic load on method calls that could return nullptr. This patch ensures that nullptr is not passed into the load. Verified with tier1-5 tests.
>
> Matias Saavedra Silva has updated the pull request incrementally with one additional commit since the last revision:
>
> Moved assert higher in call stack
Yes, this looks better. This was the source of the nullptr, except in these two cases, the pointer is never null.
-------------
Marked as reviewed by coleenp (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/16405#pullrequestreview-1705005437
More information about the hotspot-dev
mailing list