3 ms·
I agree with "Safety is a spectrum". By all accounts, Java is a "safe language"... until your code uses sun.misc.Unsafe
by exabrial 4y ago
I agree with "Safety is a spectrum". By all accounts, Java is a "safe language"... until your code uses sun.misc.Unsafe
- pjmlp 4y agoOr JNI, Panama,...
- exabrial 4y agoDoes JNI allow native code to make changes to JVM heap? I thought everything in JNI was copied in/out
- pjmlp 4y agoNot directly, only via conversion of handles into references/buffers, however once you call into external native code all bets are open. Most of the time a Java application core dumps most likely there is a native method on the call stack close to the crash point.