From: "H.J. Lu" <hjl.tools@gmail.com>
To: "Botond Dénes" <bdenes@scylladb.com>
Cc: GDB <gdb-patches@sourceware.org>
Subject: Re: [RFC PATCH v1] Support inspecting green threads
Date: Fri, 14 Aug 2020 08:33:43 -0700 [thread overview]
Message-ID: <CAMe9rOr4BxZsb4pqM8En63WtpOn3XLH8xa-WQBB3LWyMWKiUvw@mail.gmail.com> (raw)
In-Reply-To: <20200814152557.2128464-1-bdenes@scylladb.com>
On Fri, Aug 14, 2020 at 8:29 AM Botond Dénes <bdenes@scylladb.com> wrote:
>
> Some applications use green threads that have their own stacks. One such
> example is Scylla [1] which is using the seastar framework [2], which
> provides green threads in the form of seastar::thread [3]. These threads
> are created with `setcontext()` and later we switch in/out using
> `setjmp()`/`longjmp()`
>
FYI, Intel CET doesn't allow switching ucontext created by setcontext
with setjmp/longjmp. setcontext or swapcontext must be used.
--
H.J.
next prev parent reply other threads:[~2020-08-14 15:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-14 15:25 Botond Dénes
2020-08-14 15:27 ` Botond Dénes
2020-08-14 15:33 ` H.J. Lu [this message]
2020-08-17 21:34 ` Tom Tromey
2020-08-19 12:14 ` Botond Dénes
2020-09-10 21:24 ` Tom Tromey
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=CAMe9rOr4BxZsb4pqM8En63WtpOn3XLH8xa-WQBB3LWyMWKiUvw@mail.gmail.com \
--to=hjl.tools@gmail.com \
--cc=bdenes@scylladb.com \
--cc=gdb-patches@sourceware.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