RFR: 8367129: Move input validation checks to Java for java.lang.StringLatin1 intrinsics [v2]

Tobias Hartmann thartmann at openjdk.org
Fri Feb 13 07:05:29 UTC 2026


On Thu, 12 Feb 2026 16:09:35 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:

>> src/java.base/share/classes/java/lang/StringLatin1.java line 112:
>> 
>>> 110:     }
>>> 111: 
>>> 112:     // inline_string_equals
>> 
>> Is there a HotSpot specific namespace qualifier that can make it easier to cross reference this?
>> Ditto the other hotspot names below.
>
>> Is there a HotSpot specific namespace qualifier that can make it easier to cross reference this?
> 
> @RogerRiggs, not that I know of. I also considered following alternatives:
> 
> - `library_call.cpp:inline_string_equals`
> - `vmIntrinsics::_compressStringB`
> 
> But none really qualifies as a programmatic reference and settled on `inline_string_equals`, the most convenient phrase to do find-and-jump.
> 
> @dafedafe, @TobiHartmann, do you have any suggestions/preferences?

I think `vmIntrinsics::_equalsL` would be the best option here.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28832#discussion_r2802620696


More information about the core-libs-dev mailing list