putOrderedLong与putLongVolatile与putLong Java之间的区别是什么?不安全?我发现putOrderedLong和putLongVolatile源代码相同
void
sun::misc::Unsafe::putOrderedLong (jobject obj, jlong offset, jlong
value)
{
volatile jlong *addr = (jlong *) ((char *) obj + offset);
spinlock lock;
*addr = value;
}