8269246: Scoped ByteBuffer vector access #129
8269246: Scoped ByteBuffer vector access #129
Conversation
|
@PaulSandoz The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
/issue JDK-8269246 |
@PaulSandoz This issue is referenced in the PR title - it will now be updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good - thanks for taking the time to centralize the various vector operations inside ScopedMemoryAccess.
@PaulSandoz This change now passes all automated pre-integration checks. 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 8 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the
|
/integrate |
Going to push as commit 63bcd33.
Your commit was automatically rebased without conflicts. |
@PaulSandoz Pushed as commit 63bcd33. |
The Foreign Memory API supports viewing a
MemorySegment
as aByteBuffer
, an instance of which can then be passed to the vector load/store access methods.Such
ByteBuffer
access requires accesses are scoped (a method annotated withScopedMemoryAccess.Scoped
) and theByteBuffer
's scope (instance ofScopedMemoryAccess.Scope
) checked for validity. Thereby ensuring exceptional failure if the underlying segment is shared and is closed.All Vector tests pass on linux-x64, linux-aarch64, macosx-x64, and windows-x64.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk17 pull/129/head:pull/129
$ git checkout pull/129
Update a local copy of the PR:
$ git checkout pull/129
$ git pull https://git.openjdk.java.net/jdk17 pull/129/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 129
View PR using the GUI difftool:
$ git pr show -t 129
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk17/pull/129.diff