RFR: 8364588: Export the NPE backtracking functionality to general null-checking APIs
Chen Liang
liach at openjdk.org
Mon Aug 4 00:24:15 UTC 2025
On Fri, 1 Aug 2025 15:49:57 GMT, Chen Liang <liach at openjdk.org> wrote:
> 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).
Thanks for the preliminary review. After some thinking, to avoid wasting review cycles, I am pulling the common infrastructure for requireNonNull and Checks::nullCheck into a JDK-internal API, and the changes here are mostly confined to runtime.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26600#issuecomment-3148805289
More information about the security-dev
mailing list