Index: /trunk/src/VBox/VMM/MMInternal.h
===================================================================
--- /trunk/src/VBox/VMM/MMInternal.h	(revision 22928)
+++ /trunk/src/VBox/VMM/MMInternal.h	(revision 22929)
@@ -88,5 +88,5 @@
 #endif
 } MMHEAPSTAT;
-#ifdef MMR3HEAP_WITH_STATISTICS
+#if defined(MMR3HEAP_WITH_STATISTICS) && !defined(IN_TSTVMSTRUCTGC)
 AssertCompileMemberAlignment(MMHEAPSTAT, cAllocations, 8);
 #endif
Index: /trunk/src/VBox/VMM/PGMInternal.h
===================================================================
--- /trunk/src/VBox/VMM/PGMInternal.h	(revision 22928)
+++ /trunk/src/VBox/VMM/PGMInternal.h	(revision 22929)
@@ -2587,4 +2587,5 @@
 #endif
 } PGM;
+#ifndef IN_TSTVMSTRUCTGC /* HACK */
 AssertCompileMemberAlignment(PGM, paDynPageMap32BitPTEsGC, 8);
 AssertCompileMemberAlignment(PGM, HCPhysInterPD, 8);
@@ -2596,4 +2597,5 @@
 AssertCompileMemberAlignment(PGM, aHandyPages, 8);
 AssertCompileMemberAlignment(PGM, cRelocations, 8);
+#endif /* !IN_TSTVMSTRUCTGC */
 /** Pointer to the PGM instance data. */
 typedef PGM *PPGM;
Index: /trunk/src/VBox/VMM/testcase/tstVMStructGC.cpp
===================================================================
--- /trunk/src/VBox/VMM/testcase/tstVMStructGC.cpp	(revision 22928)
+++ /trunk/src/VBox/VMM/testcase/tstVMStructGC.cpp	(revision 22929)
@@ -53,4 +53,5 @@
 *   Header Files                                                               *
 *******************************************************************************/
+#define IN_TSTVMSTRUCTGC 1
 #include <VBox/cfgm.h>
 #include <VBox/cpum.h>
