Index: /trunk/src/VBox/VMM/VMMR0/GMMR0.cpp
===================================================================
--- /trunk/src/VBox/VMM/VMMR0/GMMR0.cpp	(revision 37804)
+++ /trunk/src/VBox/VMM/VMMR0/GMMR0.cpp	(revision 37805)
@@ -2543,4 +2543,5 @@
             else
                 AssertMsgFailed(("idPage=%#x\n", idPage));
+
             paPages[iPage].idPage       = NIL_GMM_PAGEID;
             paPages[iPage].idSharedPage = NIL_GMM_PAGEID;
@@ -2729,5 +2730,5 @@
             if (RT_SUCCESS(rc))
             {
-#if 0  /* This appears to spell trouble... weird. */
+#if defined(VBOX_STRICT) && 0 /** @todo re-test this later. Appeared to be a PGM init bug. */
                 for (iPage = 0; iPage < cPagesToAlloc; iPage++)
                 {
@@ -2742,21 +2743,5 @@
                  * Note! gmmR0AllocateMoreChunks may leave the protection of the mutex!
                  */
-#if 0  /* Trying to reproduce out of memory issue... */
-                if (!cPagesToUpdate)
-#endif
-                    rc = gmmR0AllocatePagesNew(pGMM, pGVM, cPagesToAlloc, paPages, GMMACCOUNT_BASE);
-#if 0  /* Trying to reproduce out of memory issue... */
-                else
-                {
-                    for (iPage = 0; iPage < cPagesToAlloc; iPage++)
-                    {
-                        paPages[iPage].HCPhysGCPhys  = NIL_RTHCPHYS;
-                        paPages[iPage].idPage        = NIL_GMM_PAGEID;
-                        paPages[iPage].idSharedPage  = NIL_GMM_PAGEID;
-                    }
-
-                    rc = VERR_GMM_HIT_VM_ACCOUNT_LIMIT;
-                }
-#endif
+                rc = gmmR0AllocatePagesNew(pGMM, pGVM, cPagesToAlloc, paPages, GMMACCOUNT_BASE);
             }
         }
