]> 4ch.mooo.com Git - 16.git/commitdiff
Signed-off-by: sparky4 <sparky4@cock.li>
authorsparky4 <sparky4@cock.li>
Mon, 3 Aug 2015 21:54:42 +0000 (16:54 -0500)
committersparky4 <sparky4@cock.li>
Mon, 3 Aug 2015 21:54:42 +0000 (16:54 -0500)
DEBUG.16
HEAP.16
exmmtest.exe
src/lib/16_mm.c

index fd55028c42bd35e86c0ffadd57cc2b60cb38525a..0c96f9ce927b78ca457666d16cf4756e47faed19 100644 (file)
--- a/DEBUG.16
+++ b/DEBUG.16
@@ -1,8 +1,8 @@
-0      Size:5160       Owner:0x0
-0      Size:5160       Owner:0x0
-1428   Size:256        Owner:0x4cfe
-Seg:1528       Size:273        Owner:0x859a
-Seg:1baf       Size:17 Owner:0x0
-Seg:1baf       Size:17 Owner:0x0
-1db0   Size:49744      Owner:0x0
+0      Size:5165       Owner:0x0
+0      Size:5165       Owner:0x0
+142d   Size:256        Owner:0x4cfe
+Seg:152d       Size:273        Owner:0x859a
+Seg:1bb4       Size:17 Owner:0x0
+Seg:1bb4       Size:17 Owner:0x0
+1db5   Size:49739      Owner:0x4cfe
 Seg:e000       Size:4294909951 Owner:0x0
diff --git a/HEAP.16 b/HEAP.16
index 612e248e84b8b92d62abbd0215d30b3d02ae7604..edf552a8e69fdec7c36bd781140531c29cf9ef2a 100644 (file)
--- a/HEAP.16
+++ b/HEAP.16
@@ -1,11 +1,11 @@
 
        == default ==
 
-  USED block at 1bb10016 of size 136
-  USED block at 1bb1009e of size 66
-  FREE block at 1bb100e0 of size 7966
-  USED block at 1bb11ffe of size 20
-  FREE block at 1bb12012 of size 8170
+  USED block at 1bb60016 of size 136
+  USED block at 1bb6009e of size 66
+  FREE block at 1bb600e0 of size 7966
+  USED block at 1bb61ffe of size 20
+  FREE block at 1bb62012 of size 8170
 OK - end of heap
 
        == near ==
index 805aed166a591cdfbb0eaabb3f87505a8d9002fc..f21d78761fc07db166173f1303ce113d36752a63 100644 (file)
Binary files a/exmmtest.exe and b/exmmtest.exe differ
index a784e4fc20d8f3abffb1e0b38b8996d280e9e7e2..80087d966fb663c0f9e02116367e665df0b80d41 100644 (file)
@@ -675,7 +675,7 @@ void MM_Startup(mminfo_t *mm, mminfotype *mmi)
 //---- length=coreleft();
        printf("                nearheap making!\n");
        _nheapgrow();
-       length=(dword)_memavl();//(dword)GetFreeSize();
+       length=(dword)_memmax();//(dword)GetFreeSize();
        start = (void huge *)(mm->nearheap = _nmalloc(length));
        length -= 16-(FP_OFF(start)&15);
        length -= SAVENEARHEAP;