by alextgordon · 11y ago · 0 comments
Of course you have to resort to low-level functionality to achieve performance. That's how computers work. We can't all live in fuzzy wuzzy land.
Surely Unsafe is safer than writing the whole thing in C and using JNI?
(separately: why the downvote? I get downvoted for having the opinion that it's worth a tiny bit of performance for improved security?)
But that's not a reasonable definition of "unsafe". This could crash the JVM is a reasonable definition. And fences and ordered instructions cannot.