在 Linux 上从当前进程中查找函数时出错
作者: freya022创建于 2025年10月29日更新于 2025年10月29日
标签feature request
Description
JNA seems to be unable to look up functions from the current process, specifically on Linux x64, while the same code works fine on Windows x64 and macOS aarch64. The documentation says JNA should look into the current process if null is passed to Native.load.
Additional details
- The Foreign Function & Memory API from Java 22 finds all functions and all tests succeed
nmseems to indicate the function is in the shared library, and isn't mangled
内容来源: java-native-access/jna