VirtualBox

Changeset 29608 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 18, 2010 10:02:47 AM (15 years ago)
Author:
vboxsync
Message:

Try to trick the optimizer to leave the page touching code in place.

File:
1 edited

Legend:

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

    r29606 r29608  
    153153                if (pRegion != (char *)pModule->Info.modBaseAddr)
    154154                {
    155                     char dummy = 0;
    156155                    /* Touch all pages. */
    157156                    while (pRegion < (char *)MemInfo.BaseAddress + MemInfo.RegionSize)
    158157                    {
     158                        /* Try to trick the optimizer to leave the page touching code in place. */
    159159                        dummy += *(char *)pRegion;
    160160                        pRegion += PAGE_SIZE;
     
    196196        VBoxServiceVerbose(3, "VbglR3RegisterSharedModule failed with %d\n", rc);
    197197   
    198 
    199198end:
    200199    RTMemFree(pVersionInfo);
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