4 ms·
Sure. Unsafe in terms of program correctness. By that measure, new Thread() is unsafe. But that's not a reasonable definition of "unsafe". This could crash the
by trb8 11y ago
Sure. Unsafe in terms of program correctness. By that measure, new Thread() is unsafe.
But that's not a reasonable definition of "unsafe". This could crash the JVM is a reasonable definition. And fences and ordered instructions cannot.