Re: alternatives to signals like try/catch
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On 7 Oct 2010, at 05:49, Terry Lambert wrote:
I'll agree with Mike that you're not going to be able to do this selectively based on the code you are currently running in, and that you'll interfere with other things that try to grab the exception port -- for example, all debuggers.
Programs like GDB and CrashReporter tend to sit on the task exception port (or the host exception port). If you're catching exceptions within a process, it's fairly safe to do so on the thread exception port. This is quite commonly used by alternatively runtime environments, notably Apple's own Java VM. S+E -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Quinn "The Eskimo!"