public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66034] New: Enhancement request: fiber-local storage
@ 2015-05-06 10:26 avi@cloudius-systems.com
2024-03-17 7:45 ` [Bug c++/66034] " pinskia at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: avi@cloudius-systems.com @ 2015-05-06 10:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66034
Bug ID: 66034
Summary: Enhancement request: fiber-local storage
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: avi@cloudius-systems.com
Target Milestone: ---
As a complement to __thread and thread_local, add __fiber storage class which
is local storage for user-level threads. User-level threads is a common
technique in high performance storage, and compiler support would be
beneficial.
On x86_64, __fiber storage can be accessed via gs:, which can be set (on newer
processors) via set setgsbase instruction in userspace.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/66034] Enhancement request: fiber-local storage
2015-05-06 10:26 [Bug c++/66034] New: Enhancement request: fiber-local storage avi@cloudius-systems.com
@ 2024-03-17 7:45 ` pinskia at gcc dot gnu.org
2024-03-17 9:00 ` redi at gcc dot gnu.org
2024-03-17 11:39 ` avi at scylladb dot com
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-17 7:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66034
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
C++20 adds coroutines which like fibers and already contains local storage
state.
https://en.cppreference.com/w/cpp/language/coroutines
So this is a won't fix.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/66034] Enhancement request: fiber-local storage
2015-05-06 10:26 [Bug c++/66034] New: Enhancement request: fiber-local storage avi@cloudius-systems.com
2024-03-17 7:45 ` [Bug c++/66034] " pinskia at gcc dot gnu.org
@ 2024-03-17 9:00 ` redi at gcc dot gnu.org
2024-03-17 11:39 ` avi at scylladb dot com
2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2024-03-17 9:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66034
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
C++ coroutines are allocated on the heap though.
https://wg21.link/p0876 is more relevant here, but not approved yet.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/66034] Enhancement request: fiber-local storage
2015-05-06 10:26 [Bug c++/66034] New: Enhancement request: fiber-local storage avi@cloudius-systems.com
2024-03-17 7:45 ` [Bug c++/66034] " pinskia at gcc dot gnu.org
2024-03-17 9:00 ` redi at gcc dot gnu.org
@ 2024-03-17 11:39 ` avi at scylladb dot com
2 siblings, 0 replies; 4+ messages in thread
From: avi at scylladb dot com @ 2024-03-17 11:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66034
--- Comment #3 from Avi Kivity <avi at scylladb dot com> ---
Yes, this is relevant to user-level threads, not coroutines.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-03-17 11:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-06 10:26 [Bug c++/66034] New: Enhancement request: fiber-local storage avi@cloudius-systems.com
2024-03-17 7:45 ` [Bug c++/66034] " pinskia at gcc dot gnu.org
2024-03-17 9:00 ` redi at gcc dot gnu.org
2024-03-17 11:39 ` avi at scylladb dot com
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).