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

Memory access implementation rewrite - post cleanup #110

Closed

Conversation

mcimadamore
Copy link
Collaborator

@mcimadamore mcimadamore commented Apr 15, 2020

  • Fix access modes not preserved in AbstractMemorySegmentImpl.ofBuffer
  • Add check to ensure that Foreign::withSize and Foreign::asMallocSegment are called with unchecked address

Progress

  • Change must not contain extraneous whitespace
  • Change must be properly reviewed

Download

$ git fetch https://git.openjdk.java.net/panama-foreign pull/110/head:pull/110
$ git checkout pull/110

Sorry, something went wrong.

mcimadamore and others added 20 commits April 10, 2020 15:08

Verified

This commit was signed with the committer’s verified signature.
mfridman Michael Fridman
There seems to be performance issues in the parallel test.
Add test which loops on slices
* rewrote paralel benchmark to use a non-recursive FJ action
…e various heap segment classes,

as C2 wants sharp type information, as well as a null check.

Todo:
* fix support for mapped buffers (currently when creating a segment from a mapped segment is never created; also projecting a segment into a bytebuffer never creates the right mapped buffer)
* cleanup code and doc
Renamed classes e.g. AbstractMemorySegment -> AbstractMemorySegmentImpl
Fixed javadoc
Add benchmark for mapped segments
Add more tests for buffer to segment conversions
Remove duplicate benchmark method
…ativeMemorySegmentImpl.java

Co-Authored-By: Jorn Vernee <JornVernee@users.noreply.github.com>
…bstractMemorySegmentImpl.java

Co-Authored-By: Jorn Vernee <JornVernee@users.noreply.github.com>
…eapMemorySegmentImpl.java

Co-Authored-By: Jorn Vernee <JornVernee@users.noreply.github.com>
* Add check to ensure that Foreign::withSize and Foreign::asMallocSegment are called with unchecked address
@bridgekeeper
Copy link

bridgekeeper bot commented Apr 15, 2020

👋 Welcome back mcimadamore! A progress list of the required criteria for merging this PR into foreign-memaccess will be added to the body of your pull request.

@openjdk
Copy link

openjdk bot commented Apr 15, 2020

@mcimadamore this pull request can no longer be integrated into foreign-memaccess 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 memaccess-impl-rewrite
git fetch https://git.openjdk.java.net/panama-foreign foreign-memaccess
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge foreign-memaccess"
git push

@openjdk openjdk bot added the rfr Ready for review label Apr 15, 2020
@mlbridge
Copy link

mlbridge bot commented Apr 15, 2020

Webrevs

@mcimadamore mcimadamore deleted the memaccess-impl-rewrite branch May 15, 2020 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-conflict rfr Ready for review
Development

Successfully merging this pull request may close these issues.

None yet

1 participant