Anand Palaniswamy wrote:

> sunwjit, symcjit and even hotspot do "implicit exceptions."  Meaning a
> null pointer exception is detected from a SIGSEGV, and the VM raises
> the related NullPointerExcetion from the signal handler.

TYA detects NullPointerExceptions with SIGSEGV on Linux.
Even shuJIT detects NPEs and ArithmeticExceptions
with SIGSEGV and SIGFPE.

> That said, the sunwjit port of Linux does NOT do implicit exceptions.
> There is a lot of code in the JIT that generates machine code that
> explicitly tests for NPEs, StackOverflows, ArithmeticExceptions.

I'm interested in why you know it.
Have you done the porting of the sunwjit?

> Personally I prefer explicit checks.

Why?

> But an ex-Self person (and now
> HotSpot person) once told me that explicit checks in the Self system
> cost about 5-10% in performance depending on the application you are
> running.
>
> -Anand.

Kazuyuki SHUDO                          Happy Hacking!
  Muraoka Lab., Grad. School of Sci. & Eng., Waseda Univ.


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to