RFR: 8364588: Export the NPE backtracking functionality to general null-checking APIs [v4]
Chen Liang
liach at openjdk.org
Fri Aug 8 18:54:14 UTC 2025
On Tue, 5 Aug 2025 10:14:07 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
>> Chen Liang has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Update NPE per roger review
>
> src/java.base/share/classes/java/lang/NullPointerException.java line 159:
>
>> 157: /// configurations to trace how a particular argument, which turns out to
>> 158: /// be `null`, was evaluated.
>> 159: /// 2. `searchSlot < 0`, stack offset is 0 (a call to the nullary constructor)
>
> Can `searchSlot == -1` here?
I think the code handles all < 0 cases so using that is fine.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26600#discussion_r2263781125
More information about the security-dev
mailing list