Re: feature tests for pthreads implementation and configuration?
- From: mikpe@xxxxxxxxxxxxxxx (Mikael Pettersson)
- Date: 29 Mar 2006 11:49:57 +0200
In article <442a5514$1@xxxxxxxxxxxxxxxxx>,
Mikael Pettersson <mikpe@xxxxxxxxxxxxxxx> wrote:
In article <44295B83.748ED644@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Kasper Dupont <32013571368912025171@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Mikael Pettersson wrote:
A no-no, yes, but not a bigger one. Our JITed code runs on stacks
that grow as needed via compiler-inserted overflow checks. That's
why signal handlers (C code not following this protocol) must be
redirected to alt stacks.
Couldn't the overflow check discover large stack usage early
enough to ensure there would still be enough space available
for a signal? (I guess you can figure out what the maximum
stack usage for your handlers is).
No we can't know with 100% accuracy which signals are being
caught or what their handlers are up to.
Correction: we do detect dynamically which signals are being caught,
so that we can enfore SA_ONSTACK for them, but we still have little
or no control over their handlers.
--
Mikael Pettersson (mikpe@xxxxxxxxx)
Computing Science Department, Uppsala University
------------ And now a word from our sponsor ---------------------
For a secure high performance FTP using SSL/TLS encryption
upgrade to SurgeFTP
---- See http://netwinsite.com/sponsor/sponsor_surgeftp.htm ----
.
- References:
- feature tests for pthreads implementation and configuration?
- From: Mikael Pettersson
- Re: feature tests for pthreads implementation and configuration?
- From: Mikael Pettersson
- Re: feature tests for pthreads implementation and configuration?
- From: Mikael Pettersson
- feature tests for pthreads implementation and configuration?
- Prev by Date: Re: feature tests for pthreads implementation and configuration?
- Next by Date: Re: Strange pager (less, more) behavior
- Previous by thread: Re: feature tests for pthreads implementation and configuration?
- Next by thread: Re: feature tests for pthreads implementation and configuration?
- Index(es):
Relevant Pages
|