hole handling in dlmalloc should not make HeapTop always skip over the hole.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1223 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2005-01-05 04:32:18 +00:00
parent af931c6e6d
commit b7a44d3808
4 changed files with 13 additions and 11 deletions

View File

@@ -175,7 +175,7 @@ yapsbrk(long size)
LOCK(HeapUsedLock);
newHeapTop = HeapTop+size;
if (Yap_hole_start && newHeapTop > Yap_hole_start) {
oldHeapTop = Yap_hole_end;
HeapTop = oldHeapTop = Yap_hole_end;
newHeapTop = oldHeapTop+size;
Yap_hole_start = Yap_hole_end = NULL;
}