mirror of
https://github.com/corda/corda.git
synced 2025-05-02 16:53:22 +00:00
implement sun.misc.Unsafe.monitorEnter and monitorExit
This commit is contained in:
parent
3e38628ad6
commit
04a34a75ed
@ -2694,6 +2694,20 @@ Avian_sun_misc_Unsafe_park
|
|||||||
monitorRelease(t, local::interruptLock(t, t->javaThread));
|
monitorRelease(t, local::interruptLock(t, t->javaThread));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern "C" JNIEXPORT void JNICALL
|
||||||
|
Avian_sun_misc_Unsafe_monitorEnter
|
||||||
|
(Thread* t, object, uintptr_t* arguments)
|
||||||
|
{
|
||||||
|
acquire(t, reinterpret_cast<object>(arguments[1]));
|
||||||
|
}
|
||||||
|
|
||||||
|
extern "C" JNIEXPORT void JNICALL
|
||||||
|
Avian_sun_misc_Unsafe_monitorExit
|
||||||
|
(Thread* t, object, uintptr_t* arguments)
|
||||||
|
{
|
||||||
|
release(t, reinterpret_cast<object>(arguments[1]));
|
||||||
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
namespace local {
|
namespace local {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user