Alex Crichton
8b4423b04f
De-pub some private runtime components
...
This change was waiting for privacy to get sorted out, which should be true now
that #8215 has landed.
Closes #4427
2013-10-11 06:49:18 -07:00
Alex Crichton
324418f32b
Don't die in try_unsafe_borrow if tls isn't ready
...
If there's no TLS key just yet, then there's nothing to unsafely borrow, so
continue returning None. This prevents causing the runtime to abort itself when
logging before the runtime is fully initialized.
Closes #9487
2013-09-25 11:40:30 -07:00
Huon Wilson
e835c6b042
rt: remove a series of unfortunate casts.
2013-08-29 22:55:59 +10:00
Brian Anderson
8fc1d9db21
std: Convert the runtime TLS key to a Rust global to avoid FFI
2013-08-24 15:46:03 -07:00
Brian Anderson
761f5fba69
std::rt: Optimize TLS use in change_task_context
2013-08-24 15:46:01 -07:00
Brian Anderson
5402786f94
std: More TLS micro-optimization
2013-08-24 15:45:21 -07:00
Niko Matsakis
0479d946c8
Add externfn macro and correctly label fixed_stack_segments
2013-08-19 07:13:15 -04:00
Brian Anderson
95badabaaf
std: Re-optimize tls access on local allocation path
...
I did this once but acciddentally undid it in a later patch.
2013-08-12 22:30:32 -07:00
Brian Anderson
835e963dbd
std::rt: Improve the error message when the thread-local ptr is null
...
Also fix some incorrect comments and variable names.
2013-08-04 15:11:55 -07:00
Brian Anderson
b5fbec9c1e
std: Rename abort!
to rtabort!
to match other macros
2013-06-17 23:24:50 -07:00
Philipp Brüschweiler
34ee63e93b
std::cell: Modernize constructors
...
Part of #3853
2013-06-04 12:03:58 +02:00
Patrick Walton
18df18c817
libstd: Fix merge fallout.
2013-05-22 21:57:11 -07:00