Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: signals??



At 3:23 PM -0700 6/22/03, Jim Magee wrote:
On Sunday, June 22, 2003, at 3:04 PM, Andreas Tobler wrote:
My work is going there to have an alternative to the sun's java with gnu java. And therefore I should implement some mechanics to handle SIGNALS in gnu java.

This might be one of the few appropriate uses of catching Mach exceptions directly (I believe Apple's adaptation of Sun's JVM does that as well). Those Mach exception APIs are considered SPIs in Mac OS X (so you're giving up some level of compatibility by doing it), but it often makes for a much better mechanism for dealing with these particular kinds of issues in a virtual machine environment.

I'm pretty sure Jim's right about the behavior of Apple's JVM. Microsoft's CLI implementation for Mac OS X uses Mach exceptions as well. The BSD signal APIs weren't sufficient for our needs. See <http://sharedsourcecli.sscli.net/source/browse/sharedsourcecli/pal/unix/exception/> if you want to see the Mach exception code in the shared source CLI.

Hope this helps,
Eric
(formerly of the SSCLI team)

--
Eric Albert email@hidden
http://rescomp.stanford.edu/~ejalbert/
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >signals?? (From: Andreas Tobler <email@hidden>)
 >Re: signals?? (From: Matt Watson <email@hidden>)
 >Re: signals?? (From: Andreas Tobler <email@hidden>)
 >Re: signals?? (From: Jim Magee <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.