Skip to content

[GR-76116] Remove Truffle NFI dependency and references.#951

Merged
graalvmbot merged 14 commits into
masterfrom
fa/GR-76474/remove_nfi
Jun 12, 2026
Merged

[GR-76116] Remove Truffle NFI dependency and references.#951
graalvmbot merged 14 commits into
masterfrom
fa/GR-76474/remove_nfi

Conversation

@graalvmbot

Copy link
Copy Markdown
Collaborator

Cleanup NFI usage after previous migrations.
Removing Truffle NFI dependency reduces native image size by about 5% on my box.

Change summary:

  • Removes the Truffle NFI dependency from GraalPy:
  • Removes the NativePointer wrapper and replaces related context/native-resource handling with primitive long.
  • Refactors C API transition code to remove interop pointer cases
  • Uses PythonToNativeInternalNode and NativeToPythonInternalNode wherever possible
  • Introduces convenience methods PythonToNativeInternalNode.executeNewRef and NativeToPythonInternalNode.executeTransfer to improve readability
  • Cleans up obsolete executeRaw / executeLong methods
  • Cleans up CExtToJavaNode / CExtToNativeNode usage and hierarchy. Use primitive long for pointers in the execute method signatures.
  • Refactors conversion logic in ReadMemberNode and avoids unnecessary conversion nodes for primitives.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 12, 2026
@graalvmbot graalvmbot closed this Jun 12, 2026
@graalvmbot graalvmbot merged commit b8c3814 into master Jun 12, 2026
62 of 63 checks passed
@graalvmbot graalvmbot deleted the fa/GR-76474/remove_nfi branch June 12, 2026 09:09
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