* java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
From-SVN: r26858
This commit is contained in:
parent
d5dde5342a
commit
a619dc1e20
@ -1,5 +1,7 @@
|
|||||||
1999-05-10 Tom Tromey <tromey@cygnus.com>
|
1999-05-10 Tom Tromey <tromey@cygnus.com>
|
||||||
|
|
||||||
|
* java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
|
||||||
|
|
||||||
* java/awt/natToolkit.cc: Added copyright header.
|
* java/awt/natToolkit.cc: Added copyright header.
|
||||||
* java/util/zip/InflaterInputStream.java: Added copyright header.
|
* java/util/zip/InflaterInputStream.java: Added copyright header.
|
||||||
|
|
||||||
|
@ -152,8 +152,7 @@ java::lang::Object::sync_init (void)
|
|||||||
// been finalized. So if we just reinitialize the old one,
|
// been finalized. So if we just reinitialize the old one,
|
||||||
// we'll never be able to (re-)destroy the mutex and/or
|
// we'll never be able to (re-)destroy the mutex and/or
|
||||||
// condition variable.
|
// condition variable.
|
||||||
si = (_Jv_SyncInfo *) _Jv_AllocBytes (sizeof (_Jv_SyncInfo));
|
si = (_Jv_SyncInfo *) _Jv_AllocBytesChecked (sizeof (_Jv_SyncInfo));
|
||||||
// FIXME: what if si == NULL?
|
|
||||||
_Jv_MutexInit (&si->mutex);
|
_Jv_MutexInit (&si->mutex);
|
||||||
_Jv_CondInit (&si->condition);
|
_Jv_CondInit (&si->condition);
|
||||||
#if defined (_Jv_HaveCondDestroy) || defined (_Jv_HaveMutexDestroy)
|
#if defined (_Jv_HaveCondDestroy) || defined (_Jv_HaveMutexDestroy)
|
||||||
|
Loading…
Reference in New Issue
Block a user