diff options
author | Bryce McKinlay <bryce@waitaki.otago.ac.nz> | 2001-09-10 01:21:08 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2001-09-10 02:21:08 +0100 |
commit | 7866a458e2c017ced1ae1a01e90d1c25c22d051d (patch) | |
tree | c9cba2a639bc7b4c52507deb032b19f60bb24057 /libjava/nogc.cc | |
parent | 69971cd850625b888f40dacdb4fc122b57602e9b (diff) | |
download | gcc-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.cc | 7 |
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 *) { |