implement Unsafe.objectFieldOffset for the Avian class library

This commit is contained in:
Joel Dice 2014-01-03 11:13:21 -07:00
parent 1275bdfd35
commit 708519d812

View File

@ -729,6 +729,14 @@ Avian_avian_Atomic_getOffset
(t, jfieldVmField(t, reinterpret_cast<object>(arguments[0])));
}
extern "C" AVIAN_EXPORT int64_t JNICALL
Avian_sun_misc_Unsafe_objectFieldOffset
(Thread* t, object, uintptr_t* arguments)
{
return fieldOffset
(t, jfieldVmField(t, reinterpret_cast<object>(arguments[1])));
}
extern "C" AVIAN_EXPORT int64_t JNICALL
Avian_avian_Atomic_compareAndSwapObject
(Thread* t, object, uintptr_t* arguments)