summaryrefslogtreecommitdiff
path: root/libjava/nogc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/nogc.cc')
-rw-r--r--libjava/nogc.cc8
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 */