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

Chen Liang liach at openjdk.org
Tue Sep 23 14:59:53 UTC 2025


On Tue, 5 Aug 2025 16:04:08 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).
>> 
>> This is a necessary prerequisite for https://bugs.openjdk.org/browse/JDK-8233268, which proposes enhanced null messages to `Objects::requireNonNull`.
>
> Chen Liang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update NPE per roger review

Can anyone come and review this little enhancement again? I think I have addressed the review comments.

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

PR Comment: https://git.openjdk.org/jdk/pull/26600#issuecomment-3324389047


More information about the security-dev mailing list