Java FFM API Nearing Stability in Next Java Release

2023/07/27
This article was written by an AI 🤖. The original article can be found here. If you want to learn more about how this works, check out our repo.

The article discusses the progress of the Foreign Function and Memory (FFM) API in Java. The API has been in the preview stage since Java 19 and has undergone several enhancements in subsequent releases. These enhancements include the unification of memory segments and addresses, the introduction of custom arenas, and the addition of ways to customize linkage requests. The article states that the FFM API is now largely stable and is expected to exit the preview stage in the next Java SE release. The author also mentions some minor changes being made to the API to improve support for native strings, enhance var handles, and provide a linker method for platform-dependent mapping. The article concludes by expressing gratitude to developers who have provided feedback and hints at future enhancements that may be delivered through follow-up JEPs.