diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-15 22:42:42 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-15 22:42:42 +0000 |
commit | c4ceee8556eb7c729912e12f422143ec5a2ed8a3 (patch) | |
tree | 7962cc125d2501ecf65b98628a06f1c18b66fba4 /libjava/nogc.cc | |
parent | d1c00d75814bf677e2c46a0d5ad7d524d83177e4 (diff) | |
download | gcc-c4ceee8556eb7c729912e12f422143ec5a2ed8a3.tar.gz |
2001-10-15 Hans Boehm <Hans_Boehm@hp.com>
* java/lang/natObject.cc (heavy_lock): Moved fields
old_client_data, old_finalization_proc near beginning.
(heavy_lock_finalization_proc): Now inline; changed type of
argument.
(JV_SYNC_TABLE_SZ): Now 2048.
(mp): New global.
(spin): `mp' now global.
(heavy_lock_obj_finalization_proc): Updated to correctly handle
heavy lock finalization.
(remove_all_heavy): New function.
(maybe_remove_all_heavy): Likewise.
(_Jv_MonitorEnter): Throw exception if object is NULL.
(_Jv_MonitorExit): Likewise. Also, clear long lists of unlocked
heavy locks.
* include/jvm.h (_Jv_AllocTraceTwo): Declare.
* nogc.cc (_Jv_AllocTraceTwo): New function.
* boehm.cc (trace_two_vtable): New global.
(_Jv_AllocTraceTwo): New function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46271 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/nogc.cc')
-rw-r--r-- | libjava/nogc.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libjava/nogc.cc b/libjava/nogc.cc index 82bf1192f35..daf279c8f85 100644 --- a/libjava/nogc.cc +++ b/libjava/nogc.cc @@ -146,4 +146,12 @@ _Jv_AllocTraceOne (jsize size /* includes vtable slot */) if (!obj) _Jv_ThrowNoMemory(); return result; } + +void * +_Jv_AllocTraceTwo (jsize size /* includes vtable slot */) +{ + ptr_t obj = calloc(size, 1); + if (!obj) _Jv_ThrowNoMemory(); + return result; +} #endif /* JV_HASH_SYNCHRONIZATION */ |