Serviceeinschränkungen vom 12.-22.02.2026 - weitere Infos auf der UB-Homepage

Treffer: Java Foreign Function & Memory API.

Title:
Java Foreign Function & Memory API. (German)
Source:
JavaSPEKTRUM; 2024, Issue 2, p52-56, 5p
Database:
Complementary Index

Weitere Informationen

The article discusses the Java Foreign Function & Memory API (FFM), which is introduced with JEP 454 and provides a new programming interface for interacting with off-heap memory in Java. This API enables efficient management of memory segments and the integration of native libraries without the need for additional C/C++ code. The article explains the advantages of the FFM API compared to existing solutions like the Java Native Interface (JNI) and describes concepts such as MemorySegment, Arena, and ValueLayout, which make the use of off-heap memory safer and more maintainable. Finally, it highlights the importance of the API for interoperability between different programming languages and addresses the need for robust error handling. [Extracted from the article]

Der Artikel behandelt die Java Foreign Function & Memory API (FFM), die mit JEP 454 eingeführt wird und eine neue Programmierschnittstelle für die Interaktion mit Off-heap-Speicher in Java bietet. Diese API ermöglicht die effiziente Verwaltung von Speichersegmenten und die Einbindung nativer Bibliotheken, ohne dass zusätzlicher C/C++-Code erforderlich ist. Der Artikel erläutert die Vorteile der FFM-API im Vergleich zu bestehenden Lösungen wie dem Java Native Interface (JNI) und beschreibt Konzepte wie MemorySegment, Arena und ValueLayout, die die Nutzung von Off-heap-Speicher sicherer und wartbarer machen. Abschließend wird auf die Bedeutung der API für die Interoperabilität zwischen verschiedenen Programmiersprachen hingewiesen und auf die Notwendigkeit einer stabilen Fehlerbehandlung eingegangen. [Extracted from the article]

Copyright of JavaSPEKTRUM is the property of SIGS DATACOM GmbH and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.)