fix alignment problem with DLMALLOC and sparc

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1208 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc 2004-12-08 16:54:33 +00:00
parent 84a0996e13
commit 2f2ba300c1

View File

@ -176,7 +176,7 @@ yapsbrk(long size)
newHeapTop = HeapTop+size;
if (Yap_hole_start && newHeapTop > Yap_hole_start) {
oldHeapTop = Yap_hole_end;
newHeapTop = oldHeapTop+size;;
newHeapTop = oldHeapTop+size;
Yap_hole_start = Yap_hole_end = NULL;
}
if (newHeapTop > HeapLim - MinHeapGap) {
@ -2893,6 +2893,7 @@ Yap_initdlmalloc(void)
Yap_av = (struct malloc_state *)HeapTop;
memset((void *)Yap_av, 0, sizeof(struct malloc_state));
HeapTop += sizeof(struct malloc_state);
HeapTop = (ADDR)ALIGN_SIZE(HeapTop,2*SIZEOF_LONG_LONG_INT);
HeapMax = HeapUsed = HeapTop-Yap_HeapBase;
}