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:
Eric Botcazou 2005-01-05 06:09:09 +01:00 committed by Eric Botcazou
parent e82f57499b
commit ec24eb4ebb
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-01-05 Eric Botcazou <ebotcazou@libertysurf.fr>
* java/lang/natObject.cc (_Jv_ObjectCheckMonitor): Initialize the
sync_info element of the object if needed.
2005-01-03 Eric Botcazou <ebotcazou@libertysurf.fr>
* testsuite/libjava.lang/Process_4.java (Process_4): Expect only

View File

@ -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);
}