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
This commit is contained in:
parent
69971cd850
commit
7866a458e2
5 changed files with 26 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue