Improve clone_entry lock granularity.

This commit is contained in:
4lDO2
2023-04-30 17:54:05 +02:00
parent 6c3f577f05
commit 45f031b50d
+1 -1
View File
@@ -1360,7 +1360,7 @@ extern "C" fn clone_handler() {
loop {
unsafe {
let Some([ip, sp]) = context_lock.read().clone_entry else {
let Some([ip, sp]) = ({ context_lock.read().clone_entry }) else {
context_lock.write().status = Status::Stopped(SIGSTOP);
continue;
};