RFR: 8345120: A likely bug in StringSupport::chunkedStrlenShort [v3]

Per Minborg pminborg at openjdk.org
Mon Dec 2 10:34:39 UTC 2024


On Fri, 29 Nov 2024 18:29:57 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix imports
>
> src/java.base/share/classes/jdk/internal/foreign/SegmentBulkOperations.java line 205:
> 
>> 203:         }
>> 204:         int result = 1;
>> 205:         final long longBytes = length & LONG_MASK;
> 
> Isn't `LONG_MASK` different from the old constant?

The difference is that bit 62 and 63 are now `1` rather than `0`. This will not have any practical implications.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22451#discussion_r1865607984


More information about the core-libs-dev mailing list