Skip to content

Commit a8b4228

Browse files
raoulstrackxYiming Lei
authored andcommitted
Bugfix: keep TLS data in sync
1 parent 23e4d63 commit a8b4228

File tree

1 file changed

+1
-0
lines changed
  • library/std/src/sys/sgx/abi/tls

1 file changed

+1
-0
lines changed

library/std/src/sys/sgx/abi/tls/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ impl Tls {
111111
rtabort!("TLS limit exceeded")
112112
};
113113
TLS_DESTRUCTOR[index].store(dtor.map_or(0, |f| f as usize), Ordering::Relaxed);
114+
unsafe { Self::current() }.data[index].set(ptr::null_mut());
114115
Key::from_index(index)
115116
}
116117

0 commit comments

Comments
 (0)