summaryrefslogtreecommitdiff
path: root/libjava/exception.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/exception.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/exception.cc')
-rw-r--r--libjava/exception.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/libjava/exception.cc b/libjava/exception.cc
index 752236102af..a8e6ece6e28 100644
--- a/libjava/exception.cc
+++ b/libjava/exception.cc
@@ -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 ();