mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
implement JVM_MaxObjectInspectionAge stub and Unsafe.getShort
This commit is contained in:
parent
686cbc3637
commit
d16bf57634
@ -2115,6 +2115,16 @@ Avian_sun_misc_Unsafe_putObject
|
||||
set(t, o, offset, reinterpret_cast<object>(value));
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT int64_t JNICALL
|
||||
Avian_sun_misc_Unsafe_getShort__Ljava_lang_Object_2J
|
||||
(Thread*, object, uintptr_t* arguments)
|
||||
{
|
||||
object o = reinterpret_cast<object>(arguments[1]);
|
||||
int64_t offset; memcpy(&offset, arguments + 2, 8);
|
||||
|
||||
return cast<int16_t>(o, offset);
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT int64_t JNICALL
|
||||
Avian_sun_misc_Unsafe_getInt__Ljava_lang_Object_2J
|
||||
(Thread*, object, uintptr_t* arguments)
|
||||
@ -2711,7 +2721,10 @@ EXPORT(JVM_GC)()
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT jlong JNICALL
|
||||
EXPORT(JVM_MaxObjectInspectionAge)(void) { abort(); }
|
||||
EXPORT(JVM_MaxObjectInspectionAge)(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT void JNICALL
|
||||
EXPORT(JVM_TraceInstructions)(jboolean) { abort(); }
|
||||
|
Loading…
Reference in New Issue
Block a user