[RTL/HEAP]
authorAleksey Bragin <aleksey@reactos.org>
Sun, 27 Feb 2011 19:36:46 +0000 (19:36 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Sun, 27 Feb 2011 19:36:46 +0000 (19:36 +0000)
- A few comments, and a new structure definition (currently unused). Absolutely no changes to the actual code.

svn path=/trunk/; revision=50927

reactos/lib/rtl/heap.h

index 8038ed8..f00a8da 100644 (file)
@@ -182,6 +182,19 @@ typedef struct _HEAP_TUNING_PARAMETERS
     ULONG MaxPreCommittThreshold;
 } HEAP_TUNING_PARAMETERS, *PHEAP_TUNING_PARAMETERS;
 
+typedef struct _HEAP_LIST_LOOKUP
+{
+    struct _HEAP_LIST_LOOKUP *ExtendedLookup;
+    ULONG ArraySize;
+    ULONG ExtraItem;
+    ULONG ItemCount;
+    ULONG OutOfRangeItems;
+    ULONG BaseIndex;
+    PLIST_ENTRY ListHead;
+    PULONG ListsInUseUlong;
+    PLIST_ENTRY *ListHints;
+} HEAP_LIST_LOOKUP, *PHEAP_LIST_LOOKUP;
+
 typedef struct _HEAP
 {
     HEAP_ENTRY Entry;
@@ -229,10 +242,11 @@ typedef struct _HEAP
     struct _HEAP_SEGMENT *Segments[HEAP_SEGMENTS]; //FIXME: non-Vista
     USHORT AllocatorBackTraceIndex;
     ULONG NonDedicatedListLength;
-    PVOID BlocksIndex;
+    PVOID BlocksIndex; // HEAP_LIST_LOOKUP
     PVOID UCRIndex;
     PHEAP_PSEUDO_TAG_ENTRY PseudoTagEntries;
     LIST_ENTRY FreeLists[HEAP_FREELISTS]; //FIXME: non-Vista
+    //LIST_ENTRY FreeLists;
     union
     {
         ULONG FreeListsInUseUlong[HEAP_FREELISTS / (sizeof(ULONG) * 8)]; //FIXME: non-Vista