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

Matias Saavedra Silva matsaave at openjdk.org
Mon Oct 30 20:19:45 UTC 2023


> 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

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/16405/files
  - new: https://git.openjdk.org/jdk/pull/16405/files/a546415a..0c91778f

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=16405&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=16405&range=00-01

  Stats: 4 lines in 3 files changed: 2 ins; 1 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/16405.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16405/head:pull/16405

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


More information about the hotspot-dev mailing list