- Timestamp:
- Oct 30, 2023 9:27:30 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/cpu/cpu-alloc-all-mem.cpp
r98103 r101644 46 46 #include <iprt/param.h> 47 47 #include <iprt/string.h> 48 #include <iprt/system.h> 48 49 #include <iprt/time.h> 49 50 … … 71 72 static bool checkList(PRTLISTNODE pHead) 72 73 { 74 uint32_t cbPage = RTSystemGetPageSize(); 75 73 76 size_t iPageSeq = 0; 74 77 size_t iAllocSeq = 0; … … 85 88 RTTESTI_CHECK_RET(*pu == iPageSeq, false); 86 89 iPageSeq++; 87 pu += PAGE_SIZE/ sizeof(size_t);90 pu += cbPage / sizeof(size_t); 88 91 } 89 92 iAllocSeq++; … … 96 99 { 97 100 RTTestSub(hTest, "Allocate all memory"); 101 102 uint32_t cbPage = RTSystemGetPageSize(); 98 103 99 104 RTLISTANCHOR AllocHead; … … 129 134 { 130 135 *pu = iPageSeq++; 131 pu += PAGE_SIZE/ sizeof(size_t);136 pu += cbPage / sizeof(size_t); 132 137 } 133 138 uint64_t const uEndTS = RTTimeNanoTS();
Note:
See TracChangeset
for help on using the changeset viewer.