mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
implement sun.misc.Unsafe.putShort
This commit is contained in:
parent
6707116dd4
commit
1476243662
@ -2394,6 +2394,17 @@ Avian_sun_misc_Unsafe_putByte__Ljava_lang_Object_2JB
|
||||
cast<int8_t>(o, offset) = value;
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT void JNICALL
|
||||
Avian_sun_misc_Unsafe_putShort__Ljava_lang_Object_2JS
|
||||
(Thread*, object, uintptr_t* arguments)
|
||||
{
|
||||
object o = reinterpret_cast<object>(arguments[1]);
|
||||
int64_t offset; memcpy(&offset, arguments + 2, 8);
|
||||
int16_t value = arguments[4];
|
||||
|
||||
cast<int16_t>(o, offset) = value;
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT void JNICALL
|
||||
Avian_sun_misc_Unsafe_putInt__Ljava_lang_Object_2JI
|
||||
(Thread*, object, uintptr_t* arguments)
|
||||
|
Loading…
Reference in New Issue
Block a user