Protecting the JVM from segfaults
Michael Böckling
michael at boeckling.net
Wed Apr 7 10:33:55 UTC 2021
In JEP 191, it says:
"Optionally, this JEP will build additional support for the above features
via: JVM-level awareness of FFI downcalls. This could include: JIT
optimization of those calls, JVM/GC-level awareness of native memory,
protection against illegal native memory accesses (SEGV faults), and
mechanisms to opt out of JNI safeguards known to be unnecessary in specific
cases (safepoint boundaries, blocking call guarantees, object lifecycle
management, etc.)."
Are there any plans to implement "protection against illegal native memory
accesses (SEGV faults)"somehow? I cannot imagine how that would work
in practice, but it would certainly be very welcome. Having a try/catch
block to intercept a segfault in native code would be fantastic.
Best regards,
Michael
More information about the panama-dev
mailing list