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/boehm.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/boehm.cc')
-rw-r--r-- | libjava/boehm.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libjava/boehm.cc b/libjava/boehm.cc index 7982eda0951..27e332b259e 100644 --- a/libjava/boehm.cc +++ b/libjava/boehm.cc @@ -375,6 +375,14 @@ _Jv_AllocArray (jsize size, jclass klass) return obj; } +/* Allocate space for a new non-Java object, which does not have the usual + Java object header but may contain pointers to other GC'ed objects. */ +void * +_Jv_AllocRawObj (jsize size) +{ + return (void *) GC_MALLOC (size); +} + static void call_finalizer (GC_PTR obj, GC_PTR client_data) { |