mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-22 00:01:10 +08:00
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
@ -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
|
||||
|
@ -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…
x
Reference in New Issue
Block a user