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

[GR-46740] Support JEP 424 ("Panama") foreign down calls in Native Image. #7152

Closed
wants to merge 15 commits into from

Conversation

graalvmbot
Copy link
Collaborator

Support is currently limited to the AMD64 platform.

Ef55 added 15 commits July 10, 2023 10:55
Breaks compatibility with JDKs < 19; this will be subsequently fixed.
Add configuration parser for foreign  downcalls.
Slight changes to API.
Prevent foreign functions feature from being used on JDK <= 20.
Improve code quality.
Add copyright headers.
Remove references to JDK19 (replaced by 20).
Change panama configuration file layout
Move classes out of PanamaAliases
Fix symbol lookups behavior
Replace dispatch function with a function-pointers-based solution
Make downcall stubs name shorter
Move all panama/foreign code in a separate module; the module is conditionally enabled if the requirements are met.
Remove (almost) all references to the word "panama".
Add public API for foreign functions.
Handle unsupported features more gracefully.
Revert changes to python imports.
Add comment about support of shared arena.
Add options to downcalls parser.
Move call state capture to CFunctionEpilogue.
Change exception on unregistered downcall.
Change MemoryAssignment design.
Change (and rename) MemoryAssignment to use register objects.
Change comment format, rename some things, fix code style, ...
Add cost estimate to CFunctionEpilogue (when applicable).
Update to JDK21.
Tweak error message.
Remove the "functions" in "foreign functions".
Simplify "linkToNative" substitution.
Improve error message.
Report unsupported features at runtime.
Change 'bitAlignment' to 'byteAlignment (change from JDK 20->21).
Fix alignment specifier being a postfix modifier (as opposed to a prefix modifier, as in the JDK).
Simplify VMStorage resolution to register.
Add runtime check for generated register allocation.
Add "--enable-native-access" to native image options
Fix partial call state capture
Change call state capture infrastructure
Make ABIUtils an image singleton.
Fix typos.
Remove occurences of the word "panama".
Stubs are now only interested in whether capture occurs or not (as opposed to interested in the precise capture set).
Disable Foreign Functions by default.
Update documentation.
Fix comment punctuation.
Fix constant pool used for downcall stubs.
Make captureCallState a boolean flag in config.
Remove usage of duringAnalysis.
Make assignment/type check dependent on ABI (at it should always have been).
Apply miscellaneous fixes (method name, typos, ...).
Fix expected call count when a pseudo C-epilogue/prologue pair is emitted.
Move safety checks about capturable states to compile-time.
Make descriptor parser more platform-agnostic.
…pilogue

Rename dummy.
Minize changes to signature files.
Improve hashCode implementations.
Implement linkToNative using an ImageSingleton.
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 8, 2023
@graalvmbot graalvmbot closed this Aug 9, 2023
@graalvmbot graalvmbot deleted the panama-foreign-downcall branch August 9, 2023 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants