RFR: 8315890: Attempts to load from nullptr in instanceKlass.cpp and unsafe.cpp [v2]

David Holmes dholmes at openjdk.org
Mon Oct 30 22:49:33 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

Not sure why it needed to be lifted out of Unsafe. The issue description should be updated now.

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

PR Review: https://git.openjdk.org/jdk/pull/16405#pullrequestreview-1705187920


More information about the hotspot-dev mailing list