Fix rare deadlock in the MMIO handler.
This commit is contained in:
parent
cc5ebaed6d
commit
430d4c7182
|
@ -172,6 +172,7 @@ bool MMIOHandler::CheckWriteWatch(X64Context* thread_context,
|
||||||
if (cur_access != memory::PageAccess::kReadOnly &&
|
if (cur_access != memory::PageAccess::kReadOnly &&
|
||||||
cur_access != memory::PageAccess::kNoAccess) {
|
cur_access != memory::PageAccess::kNoAccess) {
|
||||||
// Another thread has cleared this write watch. Abort.
|
// Another thread has cleared this write watch. Abort.
|
||||||
|
global_critical_region_.mutex().unlock();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue