mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 15:56:09 +03:00
make sure macos function has 'macos' in its name
This commit is contained in:
@@ -83,7 +83,7 @@ fn emulate_foreign_item_by_name(
|
||||
let dtor = this.memory.get_fn(dtor)?.as_instance()?;
|
||||
let data = this.read_scalar(args[1])?.not_undef()?;
|
||||
let active_thread = this.get_active_thread()?;
|
||||
this.machine.tls.set_thread_dtor(active_thread, dtor, data)?;
|
||||
this.machine.tls.set_macos_thread_dtor(active_thread, dtor, data)?;
|
||||
}
|
||||
|
||||
// Querying system information
|
||||
|
||||
+1
-1
@@ -136,7 +136,7 @@ pub fn store_tls(
|
||||
/// implementation](https://github.com/opensource-apple/dyld/blob/195030646877261f0c8c7ad8b001f52d6a26f514/src/threadLocalVariables.c#L389):
|
||||
///
|
||||
/// // NOTE: this does not need locks because it only operates on current thread data
|
||||
pub fn set_thread_dtor(
|
||||
pub fn set_macos_thread_dtor(
|
||||
&mut self,
|
||||
thread: ThreadId,
|
||||
dtor: ty::Instance<'tcx>,
|
||||
|
||||
Reference in New Issue
Block a user