Bugfix: keep TLS data in sync
This commit is contained in:
parent
4891d57f7a
commit
c46185bea0
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue