VirtualBox

Changeset 83547 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 4, 2020 11:04:04 AM (5 years ago)
Author:
vboxsync
Message:

IPRT: Added RTMemFreeZ, RTMemTmpFreeZ, and RTMemEf* variants. [build fix] bugref:9698

File:
1 edited

Legend:

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

    r83546 r83547  
    706706        if (enmType == RTMEMTYPE_RTMEMFREEZ)
    707707            RT_BZERO(pv, pBlock->cbUnaligned);
    708 #ifdef RTALLOC_EFENCE_FREE_FILL
     708# ifdef RTALLOC_EFENCE_FREE_FILL
    709709        else
    710710            memset(pv, RTALLOC_EFENCE_FREE_FILL, pBlock->cbUnaligned);
     
    775775     * since we know that it's around.
    776776     */
     777    if (enmType == RTMEMTYPE_RTMEMFREEZ)
     778        RT_BZERO(pv, cbUser);
    777779    int rc = RTMemProtect((void *)((uintptr_t)pv & ~(uintptr_t)PAGE_OFFSET_MASK), PAGE_SIZE, RTMEM_PROT_NONE);
    778780    if (RT_FAILURE(rc))
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