File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ extern crate unwind;
322
322
extern crate alloc_system;
323
323
324
324
// compiler-rt intrinsics
325
- //REDOX TODO extern crate compiler_builtins;
325
+ extern crate compiler_builtins;
326
326
327
327
// Make std testable by not duplicating lang items and other globals. See #2912
328
328
#[ cfg( test) ] extern crate std as realstd;
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ pub type Key = usize;
17
17
18
18
type Dtor = unsafe extern fn ( * mut u8 ) ;
19
19
20
- //TODO: Implement this properly
21
-
20
+ #[ thread_local]
22
21
static mut NEXT_KEY : Key = 0 ;
23
22
23
+ #[ thread_local]
24
24
static mut LOCALS : * mut BTreeMap < Key , ( * mut u8 , Option < Dtor > ) > = ptr:: null_mut ( ) ;
25
25
26
26
unsafe fn locals ( ) -> & ' static mut BTreeMap < Key , ( * mut u8 , Option < Dtor > ) > {
You can’t perform that action at this time.
0 commit comments