summaryrefslogtreecommitdiff
path: root/libjava/nogc.cc
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@waitaki.otago.ac.nz>2001-09-10 01:21:08 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2001-09-10 02:21:08 +0100
commit7866a458e2c017ced1ae1a01e90d1c25c22d051d (patch)
treec9cba2a639bc7b4c52507deb032b19f60bb24057 /libjava/nogc.cc
parent69971cd850625b888f40dacdb4fc122b57602e9b (diff)
downloadgcc-7866a458e2c017ced1ae1a01e90d1c25c22d051d.tar.gz
jvm.h (_Jv_AllocRawObj): New prototype.
* include/jvm.h (_Jv_AllocRawObj): New prototype. * boehm.cc (_Jv_AllocRawObj): Implement. * nogc.cc (_Jv_AllocRawObj): Likewise. * exception.cc (_Jv_Throw): Use _Jv_AllocRawObj, not GC_malloc. From-SVN: r45497
Diffstat (limited to 'libjava/nogc.cc')
-rw-r--r--libjava/nogc.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libjava/nogc.cc b/libjava/nogc.cc
index 7cdd5827724..65cc8c30e22 100644
--- a/libjava/nogc.cc
+++ b/libjava/nogc.cc
@@ -66,6 +66,13 @@ _Jv_AllocBytes (jsize size)
return obj;
}
+void *
+_Jv_AllocRawObj (jsize size)
+{
+ total += size;
+ return calloc (size, 1);
+}
+
void
_Jv_RegisterFinalizer (void *, _Jv_FinalizerFunc *)
{