8269246: Scoped ByteBuffer vector access#129
8269246: Scoped ByteBuffer vector access#129PaulSandoz wants to merge 3 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back psandoz! A progress list of the required criteria for merging this PR into |
|
@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. |
mcimadamore
left a comment
There was a problem hiding this comment.
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. ℹ️ 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 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 ➡️ To integrate this PR with the above commit message to the |
|
/integrate |
|
Going to push as commit 63bcd33.
Your commit was automatically rebased without conflicts. |
|
@PaulSandoz Pushed as commit 63bcd33. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
The Foreign Memory API supports viewing a
MemorySegmentas aByteBuffer, an instance of which can then be passed to the vector load/store access methods.Such
ByteBufferaccess 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
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk17 pull/129/head:pull/129$ git checkout pull/129Update a local copy of the PR:
$ git checkout pull/129$ git pull https://git.openjdk.java.net/jdk17 pull/129/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 129View PR using the GUI difftool:
$ git pr show -t 129Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk17/pull/129.diff