Fix deadlock when logging scopes

This commit is contained in:
Jeremy Soller
2025-05-06 21:50:38 -06:00
parent a31584cdef
commit 2b06118d5f
+4 -2
View File
@@ -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();
}