We must not resize the area hash table while holding an address space lock,
since it could be the kernel address space. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36091 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -262,7 +262,7 @@ VMAreaHash::Find(const char* name)
|
||||
VMAreaHash::Insert(VMArea* area)
|
||||
{
|
||||
WriteLock();
|
||||
sTable.Insert(area);
|
||||
sTable.InsertUnchecked(area);
|
||||
WriteUnlock();
|
||||
}
|
||||
|
||||
@@ -271,6 +271,6 @@ VMAreaHash::Insert(VMArea* area)
|
||||
VMAreaHash::Remove(VMArea* area)
|
||||
{
|
||||
WriteLock();
|
||||
sTable.Remove(area);
|
||||
sTable.RemoveUnchecked(area);
|
||||
WriteUnlock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user