FFM supported in GraalVM Native Image

tison wander4096 at gmail.com
Thu Jan 4 01:55:00 UTC 2024


Hi,

This can be a bit out of scope, but I wonder if there is a plan to
support FFM in GraalVM Native Image.

The original issue is that I want to resolve "~username" to the real
absolute path, and I don't find anything that can achieve this in JDK.

Instead, it's supported in POSIX with getpwnam_r and pw_dir. So, I'd
like to use FFM to access these functions (instead of JNI and
distribute multiple classifiers for many platforms).

Then, another object I'd like to achieve is packaging my lib into a
GraalVM Native Image, so it should be considered if FFM will be
supported in that technology in a future version.

Alternatively, if JDK provides interfaces to support more POSIX
manipulations, it would be more than desired.

Looking forward to your feedback.

Best,
tison.


More information about the panama-dev mailing list