VirtualBox

Changeset 78335 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Apr 26, 2019 7:54:48 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/mem: Use RTMEMPAGEALLOC_F_ADVISE_LOCKED & RTMEMPAGEALLOC_F_ADVISE_NO_DUMP when allocating safer memory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/memsafer-r3.cpp

    r76553 r78335  
    339339     */
    340340    int rc = VINF_SUCCESS;
    341     void *pvPages = RTMemPageAlloc((size_t)pThis->cPages * PAGE_SIZE);
     341    void *pvPages = RTMemPageAllocEx((size_t)pThis->cPages * PAGE_SIZE,
     342                                     RTMEMPAGEALLOC_F_ADVISE_LOCKED | RTMEMPAGEALLOC_F_ADVISE_NO_DUMP | RTMEMPAGEALLOC_F_ZERO);
    342343    if (pvPages)
    343344    {
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