1466{
1475
1476
1478
1479
1480 if (Shrink)
1481 {
1483
1484
1486
1489
1490
1492 {
1496 }
1497 }
1498 else
1499 {
1501 {
1502 DPRINT1(
"Overflow expanding big page table. Size=%lu\n", OldSize);
1505 }
1506
1507
1510 }
1511
1513 {
1514 DPRINT1(
"Overflow while calculating big page table size. Size=%lu\n", OldSize);
1517 }
1518
1520 if (NewTable ==
NULL)
1521 {
1522 DPRINT(
"Could not allocate %lu bytes for new big page table\n", NewSizeInBytes);
1525 }
1526
1527 DPRINT(
"%s big pool tracker table to %lu entries\n", Shrink ?
"Shrinking" :
"Expanding",
NewSize);
1528
1529
1532 {
1534 }
1535
1536
1539 for (
i = 0;
i < OldSize;
i++)
1540 {
1541
1543 {
1544 continue;
1545 }
1546
1547
1549
1550
1552 {
1555 }
1556
1557
1559
1560
1561 NewTable[
Hash] = OldTable[
i];
1562 }
1563
1564
1568
1569
1571
1572
1576
1578}
#define ALIGN_DOWN_BY(size, align)
#define ALIGN_UP_BY(size, align)
#define NT_SUCCESS(StatCode)
static int Hash(const char *)
#define KeReleaseSpinLock(sl, irql)
#define KeGetCurrentIrql()
ULONG ExpPoolBigEntriesInUse
VOID NTAPI ExpRemovePoolTracker(IN ULONG Key, IN SIZE_T NumberOfBytes, IN POOL_TYPE PoolType)
SIZE_T PoolBigPageTableSize
FORCEINLINE ULONG ExpComputePartialHashForAddress(IN PVOID BaseAddress)
PPOOL_TRACKER_BIG_PAGES PoolBigPageTable
#define POOL_BIG_TABLE_ENTRY_FREE
KSPIN_LOCK ExpLargePoolTableLock
VOID NTAPI ExpInsertPoolTracker(IN ULONG Key, IN SIZE_T NumberOfBytes, IN POOL_TYPE PoolType)
SIZE_T PoolBigPageTableHash
_Must_inspect_result_ _In_ USHORT NewSize
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
PVOID NTAPI MiAllocatePoolPages(IN POOL_TYPE PoolType, IN SIZE_T SizeInBytes)
ULONG NTAPI MiFreePoolPages(IN PVOID StartingAddress)
#define RtlZeroMemory(Destination, Length)
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql