RFR: 8364588: Export the NPE backtracking functionality to general null-checking APIs [v3]

Chen Liang liach at openjdk.org
Tue Aug 5 15:07:13 UTC 2025


> Provide a general facility for our null check APIs like Objects::requireNonNull or future Checks::nullCheck (void), converting the existing infrastructure to start tracking from a given stack site (depth offset) and a given stack slot (offset value).

Chen Liang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 14 additional commits since the last revision:

 - Use c++ enum classes per jdksjolen
 - Merge branch 'exp/requireNonNull-message-hacks' of github.com:liachmodded/jdk into exp/requireNonNull-message-hacks
 - Web review
   
   Co-authored-by: David Holmes <62092539+dholmes-ora at users.noreply.github.com>
 - Merge branch 'master' of https://github.com/openjdk/jdk into exp/requireNonNull-message-hacks
 - Years
 - Roll back Objects.rNN for now
 - Review remarks
 - Merge branch 'master' of https://github.com/openjdk/jdk into exp/requireNonNull-message-hacks
 - Bork
 - Try generify the NPE tracing API
 - ... and 4 more: https://git.openjdk.org/jdk/compare/dc4f5978...9af7ee85

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/26600/files
  - new: https://git.openjdk.org/jdk/pull/26600/files/09233e9a..9af7ee85

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

  Stats: 5643 lines in 151 files changed: 3341 ins; 1944 del; 358 mod
  Patch: https://git.openjdk.org/jdk/pull/26600.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26600/head:pull/26600

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


More information about the security-dev mailing list