Index: /trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp
===================================================================
--- /trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp	(revision 29607)
+++ /trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp	(revision 29608)
@@ -153,8 +153,8 @@
                 if (pRegion != (char *)pModule->Info.modBaseAddr)
                 {
-                    char dummy = 0;
                     /* Touch all pages. */
                     while (pRegion < (char *)MemInfo.BaseAddress + MemInfo.RegionSize)
                     {
+                        /* Try to trick the optimizer to leave the page touching code in place. */
                         dummy += *(char *)pRegion;
                         pRegion += PAGE_SIZE;
@@ -196,5 +196,4 @@
         VBoxServiceVerbose(3, "VbglR3RegisterSharedModule failed with %d\n", rc);
     
-
 end:
     RTMemFree(pVersionInfo);
