lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sat, Sep 27, 2014 at 04:38:05AM -0400, Sean Conner wrote:
<snip>
> [3]	setjmp() pretty much saves the current contents of the registers,
> 	incl uding the stack pointer, and longjmp() restores the contents,
> 	thus resetting the stack pointer.  Great, as long as you haven't
> 	allocated any memory, opened any files, or in general, obtained any
> 	form of resources ...
> 

I assume you're using the volatile qualifer appropriately. But in case
not... it's a big deal. Many times if you fail to use volatile it will be
obvious from the core dumps. Other times you end up with Heisenbugs.