natObject.cc (_Jv_ObjectCheckMonitor): Initialize the sync_info element of the object if needed.
* java/lang/natObject.cc (_Jv_ObjectCheckMonitor): Initialize the sync_info element of the object if needed. From-SVN: r92922
This commit is contained in:
committed by
Eric Botcazou
parent
e82f57499b
commit
ec24eb4ebb
@@ -267,6 +267,8 @@ _Jv_MonitorExit (jobject obj)
|
||||
bool
|
||||
_Jv_ObjectCheckMonitor (jobject obj)
|
||||
{
|
||||
if (__builtin_expect (INIT_NEEDED (obj), false))
|
||||
obj->sync_init ();
|
||||
_Jv_SyncInfo *si = (_Jv_SyncInfo *) obj->sync_info;
|
||||
return _Jv_MutexCheckMonitor (&si->mutex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user