VirtualBox

Ignore:
Timestamp:
Jun 28, 2023 10:24:38 AM (19 months ago)
Author:
vboxsync
Message:

Runtime: Replace occurence of PAGE_SIZE with RTSystemgetPageSize() in code used by linux.arm64 guest additions, bugref:10476

Location:
trunk/src/VBox/Runtime/common/alloc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/alloc/heapoffset.cpp

    r98103 r100308  
    380380     * Validate input. The imposed minimum heap size is just a convenient value.
    381381     */
    382     AssertReturn(cbMemory >= PAGE_SIZE, VERR_INVALID_PARAMETER);
     382    AssertReturn(cbMemory >= _4K, VERR_INVALID_PARAMETER);
    383383    AssertReturn(cbMemory < UINT32_MAX, VERR_INVALID_PARAMETER);
    384384    AssertPtrReturn(pvMemory, VERR_INVALID_POINTER);
  • trunk/src/VBox/Runtime/common/alloc/heapsimple.cpp

    r98103 r100308  
    297297     * Validate input. The imposed minimum heap size is just a convenient value.
    298298     */
    299     AssertReturn(cbMemory >= PAGE_SIZE, VERR_INVALID_PARAMETER);
     299    AssertReturn(cbMemory >= _4K, VERR_INVALID_PARAMETER);
    300300    AssertPtrReturn(pvMemory, VERR_INVALID_POINTER);
    301301    AssertReturn((uintptr_t)pvMemory + (cbMemory - 1) > (uintptr_t)cbMemory, VERR_INVALID_PARAMETER);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette