mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
- Disabled TAG_STATISTICS_TRACKING.
svn path=/trunk/; revision=4984
This commit is contained in:
parent
66cc55e3e3
commit
5e61f5b601
1 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: npool.c,v 1.65 2003/01/11 15:48:33 hbirr Exp $
|
/* $Id: npool.c,v 1.66 2003/06/27 21:35:05 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
//#define ENABLE_VALIDATE_POOL
|
//#define ENABLE_VALIDATE_POOL
|
||||||
|
|
||||||
/* Enable tracking of statistics about the tagged blocks in the pool */
|
/* Enable tracking of statistics about the tagged blocks in the pool */
|
||||||
#define TAG_STATISTICS_TRACKING
|
//#define TAG_STATISTICS_TRACKING
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Put each block in its own range of pages and position the block at the
|
* Put each block in its own range of pages and position the block at the
|
||||||
|
@ -227,7 +227,9 @@ ExInitNonPagedPool(ULONG BaseAddress)
|
||||||
kernel_pool_base = BaseAddress;
|
kernel_pool_base = BaseAddress;
|
||||||
KeInitializeSpinLock(&MmNpoolLock);
|
KeInitializeSpinLock(&MmNpoolLock);
|
||||||
MmInitKernelMap((PVOID)BaseAddress);
|
MmInitKernelMap((PVOID)BaseAddress);
|
||||||
|
#ifdef TAG_STATISTICS_TRACKING
|
||||||
memset(tag_hash_table, 0, sizeof(tag_hash_table));
|
memset(tag_hash_table, 0, sizeof(tag_hash_table));
|
||||||
|
#endif
|
||||||
InitializeListHead(&FreeBlockListHead);
|
InitializeListHead(&FreeBlockListHead);
|
||||||
InitializeListHead(&UsedBlockListHead);
|
InitializeListHead(&UsedBlockListHead);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue