1462{
1471
1472
1474
1475
1476 if (Shrink)
1477 {
1479
1480
1482
1485
1486
1488 {
1492 }
1493 }
1494 else
1495 {
1497 {
1498 DPRINT1(
"Overflow expanding big page table. Size=%lu\n", OldSize);
1501 }
1502
1503
1506 }
1507
1509 {
1510 DPRINT1(
"Overflow while calculating big page table size. Size=%lu\n", OldSize);
1513 }
1514
1516 if (NewTable ==
NULL)
1517 {
1518 DPRINT(
"Could not allocate %lu bytes for new big page table\n", NewSizeInBytes);
1521 }
1522
1523 DPRINT(
"%s big pool tracker table to %lu entries\n", Shrink ?
"Shrinking" :
"Expanding",
NewSize);
1524
1525
1528 {
1530 }
1531
1532
1535 for (
i = 0;
i < OldSize;
i++)
1536 {
1537
1539 {
1540 continue;
1541 }
1542
1543
1545
1546
1548 {
1551 }
1552
1553
1555
1556
1557 NewTable[
Hash] = OldTable[
i];
1558 }
1559
1560
1564
1565
1567
1568
1572
1574}
#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