• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Recuperating after NS_HANDLER
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recuperating after NS_HANDLER


  • Subject: Re: Recuperating after NS_HANDLER
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 17 May 2004 01:04:15 +0200

Shaun,

On 16.5.2004, at 22:52, Shaun Wexler wrote:

> each time you enter an exception block, it has to retrieve the current
> pthread to get the top handler from the thread-specific data, then
> walk the list of handlers...

Does it? Why, on earth?!?

I admit I've never ever gdb'ed the thing so I don't know what happens
there, but I *did* implement my own NS_DURING/HANDLER macros many times
in different environments. Therefore, I *do* know that *nothing* is
needed but (a) allocate the stack frame buffer, (b) mark it with a
setjmp. All the other stuff (if any, and with ObjC without automatic
objects there is next to none!) can be solved only if the exception was
raised--if ever.
---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Recuperating after NS_HANDLER
      • From: Shaun Wexler <email@hidden>
References: 
 >Recuperating after NS_HANDLER (From: Francisco Tolmasky <email@hidden>)
 >Re: Recuperating after NS_HANDLER (From: Shaun Wexler <email@hidden>)
 >Re: Recuperating after NS_HANDLER (From: j o a r <email@hidden>)
 >Re: Recuperating after NS_HANDLER (From: Shaun Wexler <email@hidden>)

  • Prev by Date: Re: Threading question
  • Next by Date: newbie - int and unsigned int
  • Previous by thread: Re: Recuperating after NS_HANDLER
  • Next by thread: Re: Recuperating after NS_HANDLER
  • Index(es):
    • Date
    • Thread