VirtualBox

Changeset 29606 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
May 18, 2010 9:32:57 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61756
Message:

Touch page update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp

    r29514 r29606  
    153153                if (pRegion != (char *)pModule->Info.modBaseAddr)
    154154                {
     155                    char dummy = 0;
    155156                    /* Touch all pages. */
    156157                    while (pRegion < (char *)MemInfo.BaseAddress + MemInfo.RegionSize)
    157158                    {
    158                         char dummy;
    159 
    160                         memcpy(&dummy, pRegion, 1);
     159                        dummy += *(char *)pRegion;
    161160                        pRegion += PAGE_SIZE;
    162161                    }
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