RFR: 8370976: Review the behavioral changes of core reflection descriptor parsing migration
Chen Liang
liach at openjdk.org
Thu Nov 20 16:58:48 UTC 2025
On Thu, 20 Nov 2025 16:25:50 GMT, ExE Boss <duke at openjdk.org> wrote:
>> These generate similar code (`test` vs `cmp` on x64)
>
> No because `check` can be negative:
> https://github.com/openjdk/jdk/blob/c51f542914955d0034b18be7e5d40ae97e93baca/src/java.base/share/classes/sun/invoke/util/BytecodeDescriptor.java#L164
Indeed as ExE-Boss pointed out, I unfortunately have to use this 32 CHECK_OFFSET so all the illegal character fall in the 64-bit range of 32 to 95, mainly due to `[`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28079#discussion_r2546860226
More information about the core-libs-dev
mailing list