mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Bugfix: keep TLS data in sync
This commit is contained in:
parent
4891d57f7a
commit
c46185bea0
@ -111,6 +111,7 @@ impl Tls {
|
||||
rtabort!("TLS limit exceeded")
|
||||
};
|
||||
TLS_DESTRUCTOR[index].store(dtor.map_or(0, |f| f as usize), Ordering::Relaxed);
|
||||
unsafe { Self::current() }.data[index].set(ptr::null_mut());
|
||||
Key::from_index(index)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user