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:
Bryce McKinlay 2001-09-10 01:21:08 +00:00 committed by Bryce McKinlay
parent 69971cd850
commit 7866a458e2
5 changed files with 26 additions and 4 deletions

View file

@ -20,8 +20,6 @@ details. */
#include "unwind.h"
#include <gc.h>
struct alignment_test_struct
{
@ -73,9 +71,8 @@ get_exception_header_from_ue (_Unwind_Exception *exc)
extern "C" void
_Jv_Throw (jthrowable value)
{
/* FIXME: Use the proper API to the collector. */
java_exception_header *xh
= static_cast<java_exception_header *>(GC_malloc (sizeof (*xh)));
= static_cast<java_exception_header *>(_Jv_AllocRawObj (sizeof (*xh)));
if (value == NULL)
value = new java::lang::NullPointerException ();