From: Ulrich Drepper <drepper@redhat.com>
To: davidm@hpl.hp.com
Cc: libc-hacker@sources.redhat.com, davidm@napali.hpl.hp.com
Subject: Re: fix ia64 longjmp() to work from alternate signal-stack
Date: Thu, 26 Aug 2004 09:24:00 -0000 [thread overview]
Message-ID: <412DAC31.1050404@redhat.com> (raw)
In-Reply-To: <16684.49335.802840.212013@napali.hpl.hp.com>
David Mosberger wrote:
> If there are no objections, please apply this patch.
I don't like this. The behavior of longjmp if the starting point is
using the alternate stack while the destination uses the normal stack,
is currently unspecified in POSIX. I've asked for clarification in the
POSIX working group. The result I expect is "don't do it", aka,
unspecified.
So, this is no case the normal setjmp/longjmp needs to handle.
For the unwind/cancellation handling this might not apply. But it is an
implementation decision to use setjmp/longjmp. So, the solution should
be to use special versions of those interfaces in the nptl
implementation. For all platforms but ia64 the new names are just
aliases of the normal code. For ia64 this heavier code is used. This
will also take care of most of the performance penalties since they
don't apply in general, only in the thread code.
--
⧠Ulrich Drepper ⧠Red Hat, Inc. ⧠444 Castro St ⧠Mountain View, CA â
next prev parent reply other threads:[~2004-08-26 9:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-25 16:39 David Mosberger
2004-08-26 9:24 ` Ulrich Drepper [this message]
2004-08-26 9:37 ` David Mosberger
2004-08-31 15:10 ` David Mosberger
2004-08-31 15:31 ` Ulrich Drepper
2004-08-31 16:14 ` David Mosberger
2004-08-31 16:20 ` Jakub Jelinek
2004-09-01 8:52 ` David Mosberger
2004-09-02 22:50 ` Ulrich Drepper
2004-09-07 17:36 ` David Mosberger
2004-09-13 17:36 ` David Mosberger
2004-09-13 18:39 ` Ulrich Drepper
2004-09-14 17:01 ` David Mosberger
2004-08-31 16:20 ` Ulrich Drepper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=412DAC31.1050404@redhat.com \
--to=drepper@redhat.com \
--cc=davidm@hpl.hp.com \
--cc=davidm@napali.hpl.hp.com \
--cc=libc-hacker@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).