-
Notifications
You must be signed in to change notification settings - Fork 61
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
8241504: Expose MemoryLayout annotations/attributes in the public API #64
Conversation
👋 Welcome back jvernee! A progress list of the required criteria for merging this PR into |
Webrevs
|
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.
Couple of suggestions, the rest looks really solid.
src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/abi/aarch64/CallArranger.java
Outdated
Show resolved
Hide resolved
I've also added some very basic tests of the new methods, mostly to sort of document the expectations w.r.t. how NAME is just another attribute, plus how using the attribute(String,Class) overload filters the optional with an instanceof check as opposed to simply casting (and potentially failing that cast with CCE). |
src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/SystemABI.java
Outdated
Show resolved
Hide resolved
src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/MemoryLayout.java
Outdated
Show resolved
Hide resolved
…SystemABI.java Co-Authored-By: Maurizio Cimadamore <54672762+mcimadamore@users.noreply.github.com>
Reviewed-by: mcimadamore, sundar
…SystemABI.java Co-Authored-By: Maurizio Cimadamore <54672762+mcimadamore@users.noreply.github.com>
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.
Some more comments
src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/abi/x64/windows/CallArranger.java
Outdated
Show resolved
Hide resolved
…ail with a CCE by casting directly if the type is incorrect, to avoid silent errors.
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.
Looks good
@JornVernee This change now passes all automated pre-integration checks. When the change also fulfills all project specific requirements, type
➡️ To integrate this PR with the above commit message, type |
/integrate |
@JornVernee |
Mailing list message from Jorn Vernee on panama-dev: Changeset: 3eda917 8241504: Expose MemoryLayout annotations/attributes in the public API Reviewed-by: mcimadamore ! src/jdk.incubator.foreign/share/classes/jdk/incubator/foreign/AbstractLayout.java |
Hi,
This PR exposed MemoryLayout attributes in the public API.
A summary of the changes:
true
, so serializing alignment is skipped for padding).Thanks,
Jorn
Progress
Issue
8241504
.Reviewers
Download
$ git fetch https://git.openjdk.java.net/panama-foreign pull/64/head:pull/64
$ git checkout pull/64