aboutsummaryrefslogtreecommitdiff
path: root/libjava/include/jvm.h
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/include/jvm.h
parent69971cd850625b888f40dacdb4fc122b57602e9b (diff)
downloadgcc-7866a458e2c017ced1ae1a01e90d1c25c22d051d.zip
gcc-7866a458e2c017ced1ae1a01e90d1c25c22d051d.tar.gz
gcc-7866a458e2c017ced1ae1a01e90d1c25c22d051d.tar.bz2
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/include/jvm.h')
-rw-r--r--libjava/include/jvm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h
index 3f9071c..936d4c6 100644
--- a/libjava/include/jvm.h
+++ b/libjava/include/jvm.h
@@ -114,6 +114,9 @@ void *_Jv_AllocPtrFreeObj (jsize size, jclass cl) __attribute__((__malloc__));
void *_Jv_AllocArray (jsize size, jclass cl) __attribute__((__malloc__));
/* Allocate space that is known to be pointer-free. */
void *_Jv_AllocBytes (jsize size) __attribute__((__malloc__));
+/* 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) __attribute__((__malloc__));
/* Explicitly throw an out-of-memory exception. */
void _Jv_ThrowNoMemory() __attribute__((__noreturn__));
/* Allocate an object with a single pointer. The first word is reserved