This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Question about POSIX libgcj signals / exception handling
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: David Daney <ddaney at avtrex dot com>
- Cc: gnustuff at thisiscool dot com, java at gcc dot gnu dot org
- Date: Sat, 11 Mar 2006 01:15:17 -0500
- Subject: Re: Question about POSIX libgcj signals / exception handling
- References: <URC8D9GFKFBA0KF94DBGOWT3YDCIC.441257fc@d9300> <4412695A.4070007@avtrex.com>
On Mar 11, 2006, at 1:08 AM, David Daney wrote:
SIGSEGV gets converted to NullPointerException. This is unconditional
it happens even if the faulting location is far away from address
zero. Native code is not treated any differently than the java
code. Any SIGSEGV is converted to NPE.
This is not true for the PPC OS X implementation. Only null pointer
accesses are
converted to NPEs.
The rest of David's analysis applies, well except for the SIGFPE part
for integer math.
On PPC (and most other targets), function calls are made for divides as
the target
does not raise a trap for undefined code unlike x86.
-- Pinski