8312186: TestStringEncodingFails for UTF-32#847
8312186: TestStringEncodingFails for UTF-32#847JornVernee wants to merge 2 commits intoopenjdk:foreign-memaccess+abifrom
Conversation
|
👋 Welcome back jvernee! A progress list of the required criteria for merging this PR into |
| private static String readFast_byte(MemorySegment segment, long offset, Charset charset) { | ||
| long len = strlen_byte(segment, offset); | ||
| byte[] bytes = new byte[(int)len]; | ||
| MemorySegment.copy(segment, ValueLayout.JAVA_BYTE, offset, bytes, 0, (int)len); |
There was a problem hiding this comment.
Note that I dropped the ValueLayout. prefix here and below to make the references to JAVA_BYTE consistent throughout the file.
|
@JornVernee This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
|
/integrate |
|
Going to push as commit 7983194. |
|
@JornVernee Pushed as commit 7983194. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
The test is failing because there are now several UTF 32-based char sets in StandardCharsets, and the FFM API can not handle these yet.
This patch adds support for the UTF 32 based char sets to
MemorySegment::getString(long, Charset),MemorySegment::setString(long, String, Charset), andSegmentAllocator::allocateFrom(String, Charset).Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/panama-foreign.git pull/847/head:pull/847$ git checkout pull/847Update a local copy of the PR:
$ git checkout pull/847$ git pull https://git.openjdk.org/panama-foreign.git pull/847/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 847View PR using the GUI difftool:
$ git pr show -t 847Using diff file
Download this PR as a diff file:
https://git.openjdk.org/panama-foreign/pull/847.diff
Webrev
Link to Webrev Comment