VirtualBox

Changeset 78345 in vbox for trunk/src


Ignore:
Timestamp:
Apr 29, 2019 10:15:06 AM (6 years ago)
Author:
vboxsync
Message:

IPRT/mem: Added RTMemPageAllocEx so we can try lock memory and try prevent it from being part of dumps/cores. [incorrect assertion]

Location:
trunk/src/VBox/Runtime/r3/posix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/rtmempage-exec-mmap-heap-posix.cpp

    r78334 r78345  
    774774RTDECL(void *) RTMemPageAllocExTag(size_t cb, uint32_t fFlags, const char *pszTag) RT_NO_THROW_DEF
    775775{
    776     AssertReturn(!(fFlags & RTMEMPAGEALLOC_F_VALID_MASK), NULL);
     776    AssertReturn(!(fFlags & ~RTMEMPAGEALLOC_F_VALID_MASK), NULL);
    777777    return rtMemPagePosixAlloc(cb, pszTag, fFlags, 0);
    778778}
  • trunk/src/VBox/Runtime/r3/posix/rtmempage-exec-mmap-posix.cpp

    r78334 r78345  
    159159RTDECL(void *) RTMemPageAllocExTag(size_t cb, uint32_t fFlags, const char *pszTag) RT_NO_THROW_DEF
    160160{
    161     AssertReturn(!(fFlags & RTMEMPAGEALLOC_F_VALID_MASK), NULL);
     161    AssertReturn(!(fFlags & ~RTMEMPAGEALLOC_F_VALID_MASK), NULL);
    162162    return rtMemPagePosixAlloc(cb, pszTag, fFlags, 0);
    163163}
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