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:
Ingo Weinhold
2010-04-08 18:30:22 +00:00
parent e99d1fd16f
commit 9d3e718801
+2 -2
View File
@@ -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();
}