diff options
Diffstat (limited to 'runtime/mirror/object-inl.h')
-rw-r--r-- | runtime/mirror/object-inl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/mirror/object-inl.h b/runtime/mirror/object-inl.h index 76a36ac893..e1097fa7ca 100644 --- a/runtime/mirror/object-inl.h +++ b/runtime/mirror/object-inl.h @@ -106,7 +106,11 @@ inline uint32_t Object::GetLockOwnerThreadId() { } inline mirror::Object* Object::MonitorEnter(Thread* self) { - return Monitor::MonitorEnter(self, this); + return Monitor::MonitorEnter(self, this, /*trylock*/false); +} + +inline mirror::Object* Object::MonitorTryEnter(Thread* self) { + return Monitor::MonitorEnter(self, this, /*trylock*/true); } inline bool Object::MonitorExit(Thread* self) { |