Fix rare deadlock in the MMIO handler.

This commit is contained in:
Dr. Chat 2015-11-05 18:13:15 -06:00
parent cc5ebaed6d
commit 430d4c7182
1 changed files with 1 additions and 0 deletions

View File

@ -172,6 +172,7 @@ bool MMIOHandler::CheckWriteWatch(X64Context* thread_context,
if (cur_access != memory::PageAccess::kReadOnly &&
cur_access != memory::PageAccess::kNoAccess) {
// Another thread has cleared this write watch. Abort.
global_critical_region_.mutex().unlock();
return true;
}