Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTracking issue for Scoped TLS #27715
Comments
alexcrichton
added
T-libs
B-unstable
labels
Aug 12, 2015
This comment has been minimized.
This comment has been minimized.
|
This reminds me of a |
This comment has been minimized.
This comment has been minimized.
|
The stabilization of scoped TLS precludes the safe implementation of couroutines/fibers/green threads in external libraries. Admittedly there are also problems with normal TLS, but they seem less terminal, and can probably be limited to causing unexpected behaviour or panics rather than outright memory unsafety with some changes. Possible solutions:
All of the options have significant downsides, either due to complexity or runtime performance. |
sfackler
added
the
I-nominated
label
Jan 26, 2016
This comment has been minimized.
This comment has been minimized.
|
Scoped TLS can currently be built externally on crates.io if truly necessary, and otherwise it seems to be getting far less usage than originally anticipated. |
alexcrichton
added
final-comment-period
and removed
I-nominated
labels
Jan 29, 2016
This comment has been minimized.
This comment has been minimized.
|
Even though I was an initial advocate for (and proposer of) scoped TLS, I think it's good to deprecate it. One major limitation that I didn't fully appreciate at the time is that the |
This comment has been minimized.
This comment has been minimized.
|
The libs team discussed this during triage yesterday and the conclusion was to deprecate |
alexcrichton commentedAug 12, 2015
This is a tracking issue for the unstable
scoped_tlsfeature in the standard library. The known open questions about this API are: