You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@artemis.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/04/20 18:06:00 UTC

[jira] [Commented] (ARTEMIS-5972) Replace JNI with Panama Foreign Function & Memory (FFM) API for Journal Native Layer

    [ https://issues.apache.org/jira/browse/ARTEMIS-5972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18074947#comment-18074947 ] 

ASF subversion and git services commented on ARTEMIS-5972:
----------------------------------------------------------

Commit cf965cc13568781d5691e103338b13d152f07769 in artemis-native's branch refs/heads/ARTEMIS-5972 from mayankkunwar
[ https://gitbox.apache.org/repos/asf?p=artemis-native.git;h=cf965cc ]

ARTEMIS-5972: Replace JNI with Panama Foreign Function & Memory (FFM) API for Journal Native Layer


> Replace JNI with Panama Foreign Function & Memory (FFM) API for Journal Native Layer
> ------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-5972
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5972
>             Project: Artemis
>          Issue Type: Improvement
>          Components: Native
>            Reporter: Mayank Kunwar
>            Assignee: Clebert Suconic
>            Priority: Major
>
> Proposing a modernization of the artemis-journal module by leveraging the Panama Foreign Function & Memory (FFM) API (introduced in JDK 22). This will provide a high-performance alternative to the existing JNI-based native layer for interacting with libaio.
>  
> ||Feature||Current JNI + libaio||Modernize Journal||
> |Call Type|Java -> JNI (C code) -> libaio |Java -> Panama FFM -> libaio|
> |Code Base|Java + C/C++ (Native Repo)|100% Pure Java|
> |I/O Mechanism |Asynchronous via libaio callbacks|Asynchronous via libaio callbacks|
> |Efficiency|Higher overhead (JNI transitions)|Lower overhead (JIT optimized)|



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org