RFR: add use site null checks [v9]
Vicente Romero
vromero at openjdk.org
Fri Jan 16 14:09:32 UTC 2026
On Fri, 16 Jan 2026 14:06:25 GMT, Vicente Romero <vromero at openjdk.org> wrote:
>> Adding use site null checks for method invocations. They are added by default but if option: `noUseSiteNullChecks` is passed, the compiler won't generate them
>
> Vicente Romero has updated the pull request incrementally with two additional commits since the last revision:
>
> - Apply suggestion from @vicente-romero-oracle
> - last change
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/NullChecksWriter.java line 221:
> 219: /* now add the last vararg argument if applicable, no checks are needed here as varargs can't be
> 220: * null restricted. Also note that at this point the vararg arguments have already been translated
> 221: * by Lower into an array. This is not true for signature polymorphic methods but we have already
Suggestion:
* by Lower into an array. This is not true for signature polymorphic methods, but we have already
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/1910#discussion_r2698649582
More information about the valhalla-dev
mailing list