Commit ec24eb4e by Eric Botcazou Committed by Eric Botcazou

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
parent e82f5749
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> 2005-01-03 Eric Botcazou <ebotcazou@libertysurf.fr>
* testsuite/libjava.lang/Process_4.java (Process_4): Expect only * testsuite/libjava.lang/Process_4.java (Process_4): Expect only
......
...@@ -267,6 +267,8 @@ _Jv_MonitorExit (jobject obj) ...@@ -267,6 +267,8 @@ _Jv_MonitorExit (jobject obj)
bool bool
_Jv_ObjectCheckMonitor (jobject obj) _Jv_ObjectCheckMonitor (jobject obj)
{ {
if (__builtin_expect (INIT_NEEDED (obj), false))
obj->sync_init ();
_Jv_SyncInfo *si = (_Jv_SyncInfo *) obj->sync_info; _Jv_SyncInfo *si = (_Jv_SyncInfo *) obj->sync_info;
return _Jv_MutexCheckMonitor (&si->mutex); return _Jv_MutexCheckMonitor (&si->mutex);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment