Fix deadlock when logging scopes
This commit is contained in:
+4
-2
@@ -462,8 +462,10 @@ impl Linker {
|
||||
eprintln!("[ld.so]: moving {} into the global scope", obj.name);
|
||||
}
|
||||
|
||||
let mut global_scope = GLOBAL_SCOPE.write();
|
||||
obj.scope().copy_into(&mut global_scope);
|
||||
{
|
||||
let mut global_scope = GLOBAL_SCOPE.write();
|
||||
obj.scope().copy_into(&mut global_scope);
|
||||
}
|
||||
self.scope_debug();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user