This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libjava test suite keeps getting stuck
- To: jsturm at one-point dot com (Jeff Sturm)
- Subject: Re: libjava test suite keeps getting stuck
- From: Joe Buck <jbuck at racerx dot synopsys dot com>
- Date: Fri, 20 Apr 2001 10:52:40 -0700 (PDT)
- Cc: zackw at stanford dot edu (Zack Weinberg), gcc at gcc dot gnu dot org, java at gcc dot gnu dot org
> It turns out there is very little C++ usage of new/delete in libjava.
> It is trivial to replace these with malloc/free (patch below).
This patch changes the behavior. new throws an exception on allocation
failure; malloc returns a null pointer. Of course, you could fix your
patch to throw the exception, or handle the error in some other way.