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:
parent
e82f57499b
commit
ec24eb4ebb
2 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue