From 591b42161c7fe70f89f8dac6c8afa6e6fb7cb1f8 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Mon, 3 Aug 2015 16:21:18 -0500 Subject: [PATCH] Signed-off-by: sparky4 --- DEBUG.16 | 8 -------- HEAP.16 | 30 ++++++++++++++---------------- MMDUMP.16 | Bin 114 -> 0 bytes exmmtest.exe | Bin 44168 -> 44280 bytes fmemtest.exe | Bin 13124 -> 13124 bytes src/lib/16_hc.c | 2 ++ src/lib/16_hc.h | 2 +- src/lib/16_mm.c | 36 +++++++++++++++++++++--------------- src/lib/16_mm.h | 1 + 9 files changed, 39 insertions(+), 40 deletions(-) delete mode 100644 DEBUG.16 delete mode 100644 MMDUMP.16 diff --git a/DEBUG.16 b/DEBUG.16 deleted file mode 100644 index 13e4d4d3..00000000 --- a/DEBUG.16 +++ /dev/null @@ -1,8 +0,0 @@ -0 Size:5194 Owner:0x0 -0 Size:5194 Owner:0x0 -144a Size:256 Owner:0x4d02 -Seg:154a Size:273 Owner:0x859a -Seg:1bd1 Size:17 Owner:0x144d -Seg:1bd1 Size:17 Owner:0x144d -1dd2 Size:49710 Owner:0x11 -Seg:e000 Size:4294909951 Owner:0xc22b diff --git a/HEAP.16 b/HEAP.16 index 96185784..abeb11d5 100644 --- a/HEAP.16 +++ b/HEAP.16 @@ -1,11 +1,10 @@ == default == - USED block at 1bd30016 of size 88 - USED block at 1bd3009e of size 42 - FREE block at 1bd300e0 of size 1f1e - USED block at 1bd31ffe of size 14 - FREE block at 1bd32012 of size 1fea + USED block at 1bda0016 of size 88 + USED block at 1bda009e of size 42 + USED block at 1bda00e0 of size 1f1e + FREE block at 1bda1ffe of size 1ffe OK - end of heap == near == @@ -27,19 +26,18 @@ OK - end of heap USED block at 0 of size 0 USED block at 0 of size 0 USED block at 0 of size 0 - USED block at 0 of size 0 OK - end of heap Memory Type Total Used Free ---------------- -------- -------- -------- -Default 16358 222 16136 -Near 31286 436 30850 -Far 16358 222 16136 +Default 16358 8168 8190 +Near 31286 31286 0 +Far 16358 8168 8190 ---------------- -------- -------- -------- -coreleft = 30848 -farcoreleft = 46788 -GetFreeSize = 15960 -GetNearFreeSize = 30850 -GetFarFreeSize = 15960 -memavl = 30848 -stackavail = 17135 +coreleft = 0 +farcoreleft = 7996 +GetFreeSize = 8014 +GetNearFreeSize = 0 +GetFarFreeSize = 8014 +memavl = 0 +stackavail = 17041 diff --git a/MMDUMP.16 b/MMDUMP.16 deleted file mode 100644 index b14aef4e442890ef3bc246fc885d88e55867cca2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 114 zcmXr0FfcGlwlXjjMFo*WjZ&;kQVfiMq70~_7N(Yo ZXljAxCL0+g0Y(3V)S8)^8k_QR0RSft7d8L@ diff --git a/exmmtest.exe b/exmmtest.exe index d3de90c1bbc9e4fcaa9c7ee895a6bae25ca790e3..d0846ef58cf2dc2e11c8d1d20a06cbb15ffa5c0e 100644 GIT binary patch delta 10763 zcma)C30M?IzOU|Shv5(r5d;)bac~4dKsn^_9=shv5fAW)x?V9J3?6YE44`QnMw9Z0 z$Et`intU+_W;2Q!6a!I{D7u>OeLGSdBj&^v*o#v9766+BqWg7|DGNsL{mh_V4wuJ2?QJ>WE}9> zJVJWUCu9)t)&fE<0JHvt@r8tp1pWzZTujLOz;WOta0zGthAtuG`U+wqJ(lAEm<$*J z=M{tu1J(hZR}vBgj9x{^Bw!kl1v~`y83{QHGys}xLWTqBKoRf}Pzj{1CFE!xA${@* zSp=-xOvpBX0-pe1Z#EI4ew&bvzyjbM;1tjZ5Rs4$Km;%aFaleEO5hgYyoHc%Ksd0t zkdRG)yP1$Ephl&0nT+du>>g+UG+V(77!Pa$egR&X(A?gJ2O#DhLXrUrd;(a3{{md! zB}5Ah1EvEHDIu44zy&*@F<=8c-Xo+JkOYhY768BRCS>y-LOuk(1AYSr>?LGAkOz3| zBgCXbvmU4bI{gKc0bxHO^+3!4m<;$3xCjhGEQ|-%0Oi1sK!h($?m@_3Ii1TX;4H9g z5N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*B=BrbJ(b0tg5 zi;C%1EN`-eJoM(oUfk+$I4M56oKTAV;a4B@_udoOgY}?n?Q*Jo!>RSG`rcO1 zC+uNb7w=h)_U0az&H-rZ4(H!NX{;!ed>3tSx|wTbl;-_o$2X9jw&cZ4U!*pvDb&3Sy)cjS>?%rFd%(G zL*nl0pq90Fz}^ZZ^PqThpuK|j!3NKe%(7Mk?Gdypy%BiuR2btO;tw%fT#rFCgA0nc zLJR#~i?sxrLB3tnJ{^)pP~|ob0lS7hs-cA2IH-eGBtiEcUj#+eY08}tdQIRCzs}{x zROkGxMI*!5;;6%I9Wv<#`5aB4Z*n{~%j=*7i{yT69_hp$2!%?_gaPUsw*T#42i3r0 z39w)QHn+Crjm=DCWp(ZUGetC50wsu-W6tG=b)-N5 delta 390 zcmW+yOGpAy6rFc<{8UasDp4?teoDmDwjfs-Lp&fA_x@eM~DnEjUo{uCL*~H?d9Tf;huBuJ@=%-sc`pFXcqNzr`#atcC=cf*WK8L z8uZdOj!=W7?J_!`BaU?o%94}L2b87LT^-2r35xIq@e*Bh4IpP4mT$|f-pRhuCzYWh zarb3V^I8G0w+QifP`po|Wk4&j!5hTWtbKv@0@^3N5qR(v8KVHv$A~SOjX)@gGm5uJ zGd*65)d0;T)!wNA9pX7qH0`5IN2a2fEggYj<>cAa-pUaiW z*7;e3t_@*}qXKtjNZwXSX*7mv!1X30xffffu) + if((word)seglength>0xffffu) { // segm=seglength/0x4000u; - segm=seglength/0xffffu; + segm=(word)seglength/0xffffu; } else segm=1; @@ -643,6 +643,7 @@ void MM_Startup(mminfo_t *mm, mminfotype *mmi) mm->mmstarted = true; mm->bombonerror = true; + mm->endid=0; // // set up the linked list (everything in the free list; @@ -807,7 +808,8 @@ void MM_GetPtr(memptr *baseptr,dword size, mminfo_t *mm, mminfotype *mmi) { mmblocktype huge *scan,huge *lastscan,huge *endscan,huge *purge,huge *next; int search; - unsigned needed,startseg; + dword needed; + word startseg; needed = (size+15)/16; // convert size from bytes to paragraphs printf("."); //0000 @@ -816,9 +818,9 @@ printf("."); //0000 mm->mmnew->useptr = baseptr; mm->mmnew->attributes = BASEATTRIBUTES; printf("."); //0000 - for(search = 0; search<3; search++) + for(search = 0; searchendid; search++) { -printf("|[case]"); //0000 +printf(" [case]"); //0000 // // first search: try to allocate right after the rover, then on up // second search: search from the head pointer up to the rover @@ -829,19 +831,19 @@ printf("|[case]"); //0000 switch(search) { case 0: -printf("0"); //0000 +printf("0 "); //0000 lastscan = mm->mmrover; scan = mm->mmrover->next; endscan = NULL; break; case 1: -printf("1"); //0000 +printf("1 "); //0000 lastscan = mm->mmhead; scan = mm->mmhead->next; endscan = mm->mmrover; break; case 2: -printf("2"); //0000 +printf("2 "); //0000 MM_SortMem(mm); lastscan = mm->mmhead; scan = mm->mmhead->next; @@ -849,14 +851,14 @@ printf("2"); //0000 break; } - startseg = lastscan->start + lastscan->length; + startseg = lastscan->start + (word)lastscan->length; while(scan != endscan) { -printf(","); //0000 +//printf(","); //0000 if(scan->start - startseg >= needed) { -printf("\\"); //0000 +printf("."); //0000 // // got enough space between the end of lastscan and // the start of scan, so throw out anything in the middle @@ -864,7 +866,7 @@ printf("\\"); //0000 // purge = lastscan->next; lastscan->next = mm->mmnew; - mm->mmnew->start = *(unsigned *)baseptr = startseg; + mm->mmnew->start = *(word *)baseptr = startseg; mm->mmnew->next = scan; while(purge != scan) { // free the purgable block @@ -883,12 +885,13 @@ printf(" freeing block~\n"); //0000 if((scan->attributes & LOCKBIT) || !(scan->attributes & PURGEBITS) ) { -printf("/[lock]"); //0000 +printf(" [lock] "); //0000 +printf("len=%lu ", scan->length); lastscan = scan; - startseg = lastscan->start + lastscan->length; + startseg = lastscan->start + (word)lastscan->length; } - +printf("\n"); scan=scan->next; // look at next line } } @@ -898,6 +901,7 @@ printf("/[lock]"); //0000 heapdump(); printf(OUT_OF_MEM_MSG,(size-mmi->nearheap)); printf("for stability reasons the program will shut down! wwww\n"); + printf(" endid=%u\n",(mm->endid)); MM_Shutdown(mm); exit(-1); } @@ -1566,6 +1570,7 @@ void MM_GetNewBlock(mminfo_t *mm) return; } mm->mmfree=mm->mmfree->next; + mm->endid++; //end of list } void MM_FreeBlock(mmblocktype *x, mminfo_t *mm) @@ -1573,6 +1578,7 @@ void MM_FreeBlock(mmblocktype *x, mminfo_t *mm) x->useptr=NULL; x->next=mm->mmfree; mm->mmfree=x; + mm->endid--; //end of list } void MM_seguin(void) diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index 010a2626..575685c3 100644 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -136,6 +136,7 @@ typedef struct unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle; unsigned int EMSVer; word numUMBs,UMBbase[MAXUMBS]; + word endid; //end of list //dword numUMBs,UMBbase[MAXUMBS]; mmblocktype huge mmblocks[MAXBLOCKS],huge *mmhead,huge *mmfree,huge *mmrover,huge *mmnew; } mminfo_t; -- 2.39.5