summaryrefslogtreecommitdiff
path: root/libjava/boehm.cc
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-10 01:21:08 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-10 01:21:08 +0000
commita9460e1f0bc702445e3c5c7ec0814422e3690359 (patch)
treec9cba2a639bc7b4c52507deb032b19f60bb24057 /libjava/boehm.cc
parente1a0572dd809ae3defa258fd154e6d52d6058c57 (diff)
downloadgcc-a9460e1f0bc702445e3c5c7ec0814422e3690359.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45497 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/boehm.cc')
-rw-r--r--libjava/boehm.cc8
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)
{