diff options
| author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-10 01:21:08 +0000 |
|---|---|---|
| committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-10 01:21:08 +0000 |
| commit | a9460e1f0bc702445e3c5c7ec0814422e3690359 (patch) | |
| tree | c9cba2a639bc7b4c52507deb032b19f60bb24057 /libjava/include | |
| parent | e1a0572dd809ae3defa258fd154e6d52d6058c57 (diff) | |
| download | ppe42-gcc-a9460e1f0bc702445e3c5c7ec0814422e3690359.tar.gz ppe42-gcc-a9460e1f0bc702445e3c5c7ec0814422e3690359.zip | |
* 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/include')
| -rw-r--r-- | libjava/include/jvm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h index 3f9071c347f..936d4c690c6 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 |

