On Wed, 29 May 2002, Hong Zhang wrote:

> > > I used to be at Sun. I knew those warnings too. If we use longjmp
> > > carefully, we can make it. In the worst case, write our own version.
> >
> > ..Or we could use setcontext/getcontext, could we not?
>
> The setcontext/getcontext will be much worse than setjmp/longjmp. The
> are more platform specific than longjmp. And they don't work well inside
> signal handler, just like longjmp.

I am assuming that we will _not_ use exceptions from within a signal
handler, as per Dan's statements.

> When I was working on HotSpot JVM, we had some problems with getcontext.
> They work 99.99% of time. We added many workaround for the .01% cases. I
> believe the Solaris guys have been improving the code. I am not sure of
> the current status.

Was that inside of a signal handler or just in general usage?

- D

<[EMAIL PROTECTED]>

Reply via email to