Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8293841: RISC-V: Implementation of Foreign Function & Memory API (Preview) #11004

Closed

Conversation

feilongjiang
Copy link
Member

@feilongjiang feilongjiang commented Nov 5, 2022

Add experimental Foreign Function & Memory API support for RISC-V.

For details of the FFM API RISC-V port please refer to JBS issue

Testing:

  • jdk_foreign with release/fastdebug build on linux-riscv64
  • jdk_foreign with release/fastdebug build on linux-x64
  • jdk_foreign with release/fastdebug build on linux-aarch64

Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8293841: RISC-V: Implementation of Foreign Function & Memory API (Preview)

Reviewers

Contributors

  • Weikai He <weikai@isrc.iscas.ac.cn>
  • Fei Yang <fyang@openjdk.org>

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/11004/head:pull/11004
$ git checkout pull/11004

Update a local copy of the PR:
$ git checkout pull/11004
$ git pull https://git.openjdk.org/jdk pull/11004/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 11004

View PR using the GUI difftool:
$ git pr show -t 11004

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/11004.diff

@feilongjiang feilongjiang marked this pull request as draft November 5, 2022 03:48
@bridgekeeper
Copy link

bridgekeeper bot commented Nov 5, 2022

👋 Welcome back fjiang! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Nov 5, 2022

@feilongjiang The following labels will be automatically applied to this pull request:

  • core-libs
  • hotspot

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added hotspot hotspot-dev@openjdk.org core-libs core-libs-dev@openjdk.org labels Nov 5, 2022
@feilongjiang
Copy link
Member Author

/contributor add Weikai He weikai@isrc.iscas.ac.cn

@openjdk
Copy link

openjdk bot commented Nov 8, 2022

@feilongjiang
Contributor Weikai He <weikai@isrc.iscas.ac.cn> successfully added.

@openjdk
Copy link

openjdk bot commented Dec 13, 2022

@feilongjiang this pull request can not be integrated into master due to one or more merge conflicts. To resolve these merge conflicts and update this pull request you can run the following commands in the local repository for your personal fork:

git checkout JDK-8293841-foreign-api-riscv
git fetch https://git.openjdk.org/jdk master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push

@openjdk openjdk bot added the merge-conflict Pull request has merge conflict with target branch label Dec 13, 2022
@feilongjiang feilongjiang force-pushed the JDK-8293841-foreign-api-riscv branch 2 times, most recently from 18c980f to 614882d Compare December 17, 2022 03:29
@openjdk openjdk bot removed the merge-conflict Pull request has merge conflict with target branch label Dec 17, 2022
@feilongjiang
Copy link
Member Author

/contributor add @RealFYang

@openjdk
Copy link

openjdk bot commented Dec 19, 2022

@feilongjiang
Contributor Fei Yang <fyang@openjdk.org> successfully added.

@feilongjiang feilongjiang force-pushed the JDK-8293841-foreign-api-riscv branch 7 times, most recently from 4a35147 to 7a5de9a Compare December 27, 2022 09:43
@feilongjiang feilongjiang force-pushed the JDK-8293841-foreign-api-riscv branch 7 times, most recently from effdf23 to bd943a5 Compare January 2, 2023 08:56
Copy link
Member

@JornVernee JornVernee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent. No Comments.

I am running some sanity testing on our CI, and will approve when it comes back green.

@openjdk
Copy link

openjdk bot commented Jan 14, 2023

@feilongjiang 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:

8293841: RISC-V: Implementation of Foreign Function & Memory API (Preview)

Co-authored-by: Weikai He <weikai@isrc.iscas.ac.cn>
Co-authored-by: Fei Yang <fyang@openjdk.org>
Reviewed-by: jvernee, fyang, shade, yadongwang

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 36 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@JornVernee, @RealFYang, @shipilev) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jan 14, 2023
Copy link
Member

@RealFYang RealFYang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. This also passed tier1-4 tests on my HiFive Unmatched boards.

@feilongjiang
Copy link
Member Author

feilongjiang commented Jan 17, 2023

Excellent. No Comments.

I am running some sanity testing on our CI, and will approve when it comes back green.

@JornVernee, Thanks for the review and performing sanity testing!

Copy link
Member

@shipilev shipilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay from the cursory review.

src/hotspot/cpu/riscv/codeBuffer_riscv.cpp Show resolved Hide resolved
Copy link
Contributor

@yadongw yadongw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@feilongjiang
Copy link
Member Author

@JornVernee @RealFYang @shipilev @yadongw -- Thank you all for the review! I'm going to integrate it then.
/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Jan 19, 2023
@openjdk
Copy link

openjdk bot commented Jan 19, 2023

@feilongjiang
Your change (at version feac5fa) is now ready to be sponsored by a Committer.

@RealFYang
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented Jan 19, 2023

Going to push as commit 24cdcd4.
Since your change was applied there have been 36 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jan 19, 2023
@openjdk openjdk bot closed this Jan 19, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Jan 19, 2023
@openjdk
Copy link

openjdk bot commented Jan 19, 2023

@RealFYang @feilongjiang Pushed as commit 24cdcd4.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@feilongjiang feilongjiang deleted the JDK-8293841-foreign-api-riscv branch January 31, 2023 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-libs core-libs-dev@openjdk.org hotspot hotspot-dev@openjdk.org integrated Pull request has been integrated
5 participants