[foreign-memaccess+abi] RFR: Improve strlen performance [v4]

Per Minborg pminborg at openjdk.org
Wed Aug 16 12:33:34 UTC 2023


On Tue, 15 Aug 2023 14:34:15 GMT, Radoslaw Smogura <duke at openjdk.org> wrote:

>> So, I'd suggest to capture this in a small benchmark, and perhaps file a C2 compiler issue.
>
> I wonder if optimisation issues can be related to using int counted loops instead of long, and using `ArraysSupport.SOFT_MAX_ARRAY_LENGTH`, maybe limit should be memory segment size. Adding large int to start can theoretically overflow long.

I have raised a new issue about this here: https://bugs.openjdk.org/browse/JDK-8314425

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

PR Review Comment: https://git.openjdk.org/panama-foreign/pull/862#discussion_r1295823619


More information about the panama-dev mailing list