Changeset 100308 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Jun 28, 2023 10:24:38 AM (19 months ago)
- Location:
- trunk/src/VBox/Runtime/common
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/alloc/heapoffset.cpp
r98103 r100308 380 380 * Validate input. The imposed minimum heap size is just a convenient value. 381 381 */ 382 AssertReturn(cbMemory >= PAGE_SIZE, VERR_INVALID_PARAMETER);382 AssertReturn(cbMemory >= _4K, VERR_INVALID_PARAMETER); 383 383 AssertReturn(cbMemory < UINT32_MAX, VERR_INVALID_PARAMETER); 384 384 AssertPtrReturn(pvMemory, VERR_INVALID_POINTER); -
trunk/src/VBox/Runtime/common/alloc/heapsimple.cpp
r98103 r100308 297 297 * Validate input. The imposed minimum heap size is just a convenient value. 298 298 */ 299 AssertReturn(cbMemory >= PAGE_SIZE, VERR_INVALID_PARAMETER);299 AssertReturn(cbMemory >= _4K, VERR_INVALID_PARAMETER); 300 300 AssertPtrReturn(pvMemory, VERR_INVALID_POINTER); 301 301 AssertReturn((uintptr_t)pvMemory + (cbMemory - 1) > (uintptr_t)cbMemory, VERR_INVALID_PARAMETER); -
trunk/src/VBox/Runtime/common/misc/handletablectx.cpp
r98103 r100308 49 49 #include <iprt/string.h> 50 50 #include <iprt/asm.h> 51 #include <iprt/system.h> 51 52 #include "internal/magics.h" 52 53 #include "handletable.h" … … 118 119 uint32_t const iLevel1 = pThis->cCur / RTHT_LEVEL2_ENTRIES; 119 120 uint32_t cLevel1 = iLevel1 >= pThis->cLevel1 120 ? pThis->cLevel1 + PAGE_SIZE/ sizeof(void *)121 ? pThis->cLevel1 + RTSystemGetPageSize() / sizeof(void *) 121 122 : 0; 122 123 if (cLevel1 > pThis->cMax / RTHT_LEVEL2_ENTRIES) -
trunk/src/VBox/Runtime/common/misc/handletablesimple.cpp
r98103 r100308 49 49 #include <iprt/string.h> 50 50 #include <iprt/asm.h> 51 #include <iprt/system.h> 51 52 #include "internal/magics.h" 52 53 #include "handletable.h" … … 110 111 uint32_t const iLevel1 = pThis->cCur / RTHT_LEVEL2_ENTRIES; 111 112 uint32_t cLevel1 = iLevel1 >= pThis->cLevel1 112 ? pThis->cLevel1 + PAGE_SIZE/ sizeof(void *)113 ? pThis->cLevel1 + RTSystemGetPageSize() / sizeof(void *) 113 114 : 0; 114 115 if (cLevel1 > pThis->cMax / RTHT_LEVEL2_ENTRIES)
Note:
See TracChangeset
for help on using the changeset viewer.