VirtualBox

Ignore:
Timestamp:
Nov 6, 2021 3:10:49 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148086
Message:

IPRT/RTR0MemObj: Added RTR0MemObjWasZeroInitialized and a couple of flags with which the backend can feed it the necessary info. It would be good to try avoid zeroing memory twice when we can. bugref:10093

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/darwin/memobj-r0drv-darwin.cpp

    r91483 r92246  
    744744                if (pMemDarwin)
    745745                {
     746                    if (fOptions & kIOMemoryKernelUserShared)
     747                        pMemDarwin->Core.fFlags |= RTR0MEMOBJ_FLAGS_ZERO_AT_ALLOC;
     748                    else
     749                        pMemDarwin->Core.fFlags |= RTR0MEMOBJ_FLAGS_UNINITIALIZED_AT_ALLOC;
    746750                    if (fContiguous)
    747751                    {
Note: See TracChangeset for help on using the changeset viewer.

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