From: Brad Smith <brad@comstyle.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Andreas F?rber <andreas.faerber@web.de>,
qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] getting rid of coroutine-gthread?
Date: Sat, 12 Jan 2013 07:21:23 -0500 [thread overview]
Message-ID: <20130112122122.GI22557@rox.home.comstyle.com> (raw)
In-Reply-To: <CAFEAcA-pPRaYFfC2zDeK8CdRXKE8V6SudtHheP7wC1-ZjWQ0Fw@mail.gmail.com>
On Sat, Jan 12, 2013 at 12:08:47PM +0000, Peter Maydell wrote:
> On 12 January 2013 09:07, Brad Smith <brad@comstyle.com> wrote:
> > On Fri, Jan 11, 2013 at 07:24:35PM +0100, Andreas F?rber wrote:
> >> Am 11.01.2013 19:11, schrieb Paolo Bonzini:
> >> > as far as I know OpenBSD and Linux/ARM were the main users of
> >> > coroutine-gthread. Do you think we could dump it and rely on
> >> > coroutine-sigaltstack only?
> >>
> >> No, I believe there is explicit code in configure to force the GThread
> >> implementation on Mac OS X.
> >
> > That is to skip over testing for the ucontext implementation. There was
> > a build issue with the sigaltstack implementation but it was fixed
> > relatively recently.
>
> Yes. That configure skip code is actually broken because it skips the
> test for the ucontext implementation but doesn't actually set the
> coroutine_backend variable to anything, so we end up with (a)
> a confusing message to the user saying just "coroutine backend"
> rather than "coroutine backend foo" and (b) the gthreads backend
> more by luck than judgement. Easiest fix here is probably to
> replace the 'if darwin' check with an "#ifdef some-darwin-symbol
> #error" in the makecontext test program (and incidentally we could
> add a comment to the effect that at least some versions of MacOS
> provide makecontext but make getcontext always return ENOTSUP;
> I had to trawl the mailing list to find out why we did that :-))
>
> Even if we don't drop gthreads, I think there's an argument to be
> made for having sigcontext be the next backend to try after
> ucontext.
The ucontext support in OS X has been marked as deprecated, that
seems to have popped up with 10.6. No idea if it has been removed
all together since then. It was made obsolete in POSIX.1-2001.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
next prev parent reply other threads:[~2013-01-12 12:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-11 18:11 [Qemu-devel] getting rid of coroutine-gthread? Paolo Bonzini
2013-01-11 18:24 ` Andreas Färber
2013-01-12 9:07 ` Brad Smith
2013-01-12 12:08 ` Peter Maydell
2013-01-12 12:21 ` Brad Smith [this message]
2013-01-12 9:03 ` Brad Smith
2013-01-15 13:18 ` Kevin Wolf
2013-01-15 13:28 ` Paolo Bonzini
2013-01-15 13:40 ` Kevin Wolf
2013-01-15 15:13 ` Paolo Bonzini
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=20130112122122.GI22557@rox.home.comstyle.com \
--to=brad@comstyle.com \
--cc=andreas.faerber@web.de \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/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 NNTP newsgroup(s).