mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:56:05 +00:00
Ended the searching for a free block if it was found one.
svn path=/trunk/; revision=3978
This commit is contained in:
parent
779329a8ee
commit
aa18c0d5d4
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: npool.c,v 1.64 2002/11/10 18:17:42 chorns Exp $
|
||||
/* $Id: npool.c,v 1.65 2003/01/11 15:48:33 hbirr Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -317,6 +317,8 @@ MiDebugDumpNonPagedPoolStats(BOOLEAN NewOnly)
|
|||
DbgPrint("TotalBlocks %d TotalSize %d\n",
|
||||
TotalBlocks, TotalSize);
|
||||
}
|
||||
DbgPrint("Freeblocks %d TotalFreeSize %d AverageFreeSize %d\n",
|
||||
EiNrFreeBlocks, EiFreeNonPagedPool, EiNrFreeBlocks ? EiFreeNonPagedPool / EiNrFreeBlocks : 0);
|
||||
DbgPrint("***************** Dump Complete ***************\n");
|
||||
#endif /* TAG_STATISTICS_TRACKING */
|
||||
}
|
||||
|
@ -713,6 +715,10 @@ static BLOCK_HDR* lookup_block(unsigned int size)
|
|||
(best == NULL || current->Size < best->Size))
|
||||
{
|
||||
best = current;
|
||||
if (best->Size == size)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
current_entry = current_entry->Flink;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue