[foreign-memaccess+abi] Integrated: 8313238: Improve the performance of strlen for null-terminated strings
Per Minborg
pminborg at openjdk.org
Mon Aug 7 11:02:56 UTC 2023
On Thu, 3 Aug 2023 13:52:27 GMT, Per Minborg <pminborg at openjdk.org> wrote:
> This PR proposes to use native calls for determining the string length for C-type strings.
>
> Smaller segments (<1024 bytes) is using a trivial call whereas all other segments are using a normal call. We might consider always using regular calls if we think most segments are unbound anyhow.
>
> The PR also contains a number of new tests, one of which requires a large heap size to run. It is likely that this latter test will not run in most test environments. In such cases, it is silently ignored.
This pull request has now been integrated.
Changeset: 585a1795
Author: Per Minborg <pminborg at openjdk.org>
URL: https://git.openjdk.org/panama-foreign/commit/585a1795677e31b3871bafb2d2d6f83a4b615d5e
Stats: 366 lines in 2 files changed: 346 ins; 1 del; 19 mod
8313238: Improve the performance of strlen for null-terminated strings
Reviewed-by: jvernee
-------------
PR: https://git.openjdk.org/panama-foreign/pull/857
More information about the panama-dev
mailing list