public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "thiago at kde dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/99277] C++2a synchronisation is inefficient in GCC 11
Date: Fri, 26 Feb 2021 19:14:51 +0000	[thread overview]
Message-ID: <bug-99277-4-fjKHPihckp@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-99277-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99277

--- Comment #4 from Thiago Macieira <thiago at kde dot org> ---
(In reply to Jonathan Wakely from comment #3)
> We've done things this way for years. When C++20 support is no longer
> experimental is when the ABI will be fixed.

Based on the discussion, I've removed the "can't be fixed later" part of the
summary.

(In reply to Jakub Jelinek from comment #2)
> Regarding 32-bit vs. 64-bit futex, I guess it depends on what the 64-bit
> object holds, if it holds a counter, the usual way how to handle it is to do
> futex on the least significant half of the counter.

But if it holds a pointer value, then we can't do that trick. We'd need to do a
pointer+counter (generation) trick, which requires a 16-byte compare-exchange
to update, with the futex pointing to the lower half of the counter portion.
I'm just saying that we may have sufficient argument now to change Linus' mind
on having a 64-bit futex support. 

Whether that applies to 32-bit architectures or not, I don't know and is not in
my interest area to research.

  parent reply	other threads:[~2021-02-26 19:14 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-25 23:27 [Bug libstdc++/99277] New: C++2a synchronisation is inefficient in GCC 11 and can't be fixed later thiago at kde dot org
2021-02-26  0:05 ` [Bug libstdc++/99277] " hjl.tools at gmail dot com
2021-02-26  7:22 ` [Bug libstdc++/99277] [11 Regression] " rguenth at gcc dot gnu.org
2021-02-26 12:18 ` jakub at gcc dot gnu.org
2021-02-26 12:52 ` [Bug libstdc++/99277] " redi at gcc dot gnu.org
2021-02-26 19:14 ` thiago at kde dot org [this message]
2021-02-27  2:22 ` [Bug libstdc++/99277] C++2a synchronisation is inefficient in GCC 11 ville.voutilainen at gmail dot com
2021-02-27  3:21 ` thiago at kde dot org
2021-04-27 11:40 ` jakub at gcc dot gnu.org
2021-04-27 14:38 ` thiago at kde dot org
2021-04-27 15:40 ` redi at gcc dot gnu.org
2022-05-06  8:30 ` jakub at gcc dot gnu.org
2023-05-08 12:21 ` rguenth at gcc dot gnu.org
2023-05-08 15:15 ` thiago at kde dot org
2023-05-08 16:39 ` redi at gcc dot gnu.org
2023-05-08 18:52 ` thiago at kde dot org
2023-05-08 19:16 ` rodgertq at gcc dot gnu.org
2023-05-08 19:42 ` thiago at kde dot org
2023-05-08 20:00 ` redi at gcc dot gnu.org
2023-05-08 20:28 ` thiago at kde dot org
2023-05-08 20:52 ` redi at gcc dot gnu.org
2023-05-08 20:55 ` thiago at kde dot org
2023-05-08 21:16 ` redi at gcc dot gnu.org
2023-05-08 23:06 ` rodgertq at gcc dot gnu.org

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=bug-99277-4-fjKHPihckp@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).