[foreign-memaccess+abi] RFR: 8313238: Improve the performance of strlen for null-terminated strings [v2]
Per Minborg
pminborg at openjdk.org
Mon Aug 7 08:25:13 UTC 2023
> 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.
Per Minborg has updated the pull request incrementally with three additional commits since the last revision:
- Remove redundant check
- Use strnlen
- Improve exception handling
-------------
Changes:
- all: https://git.openjdk.org/panama-foreign/pull/857/files
- new: https://git.openjdk.org/panama-foreign/pull/857/files/6a7129b9..d3e8a26a
Webrevs:
- full: https://webrevs.openjdk.org/?repo=panama-foreign&pr=857&range=01
- incr: https://webrevs.openjdk.org/?repo=panama-foreign&pr=857&range=00-01
Stats: 61 lines in 2 files changed: 49 ins; 2 del; 10 mod
Patch: https://git.openjdk.org/panama-foreign/pull/857.diff
Fetch: git fetch https://git.openjdk.org/panama-foreign.git pull/857/head:pull/857
PR: https://git.openjdk.org/panama-foreign/pull/857
More information about the panama-dev
mailing list