mirror of
https://github.com/corda/corda.git
synced 2025-04-15 15:07:03 +00:00
implement Unsafe.putByte
This commit is contained in:
parent
572f2d81eb
commit
6506760dd9
@ -2193,6 +2193,17 @@ Avian_sun_misc_Unsafe_getLongVolatile
|
||||
return result;
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT void JNICALL
|
||||
Avian_sun_misc_Unsafe_putByte__Ljava_lang_Object_2JB
|
||||
(Thread*, object, uintptr_t* arguments)
|
||||
{
|
||||
object o = reinterpret_cast<object>(arguments[1]);
|
||||
int64_t offset; memcpy(&offset, arguments + 2, 8);
|
||||
int8_t value = arguments[4];
|
||||
|
||||
cast<int8_t>(o, offset) = value;
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT void JNICALL
|
||||
Avian_sun_misc_Unsafe_putInt__Ljava_lang_Object_2JI
|
||||
(Thread*, object, uintptr_t* arguments)
|
||||
|
Loading…
x
Reference in New Issue
Block a user