mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
implement Unsafe.objectFieldOffset for the Avian class library
This commit is contained in:
parent
1275bdfd35
commit
708519d812
@ -729,6 +729,14 @@ Avian_avian_Atomic_getOffset
|
|||||||
(t, jfieldVmField(t, reinterpret_cast<object>(arguments[0])));
|
(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
|
extern "C" AVIAN_EXPORT int64_t JNICALL
|
||||||
Avian_avian_Atomic_compareAndSwapObject
|
Avian_avian_Atomic_compareAndSwapObject
|
||||||
(Thread* t, object, uintptr_t* arguments)
|
(Thread* t, object, uintptr_t* arguments)
|
||||||
|
Loading…
Reference in New Issue
Block a user