Changeset 19735 in vbox
- Timestamp:
- May 15, 2009 12:50:56 PM (16 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/EM.cpp
r19719 r19735 127 127 AssertCompile(sizeof(pVM->em.s) <= sizeof(pVM->em.padding)); 128 128 AssertCompile(sizeof(pVM->aCpus[0].em.s.u.FatalLongJump) <= sizeof(pVM->aCpus[0].em.s.u.achPaddingFatalLongJump)); 129 AssertCompileMemberAlignment(EM, CritSectREM, 8);129 AssertCompileMemberAlignment(EM, CritSectREM, sizeof(uintptr_t)); 130 130 131 131 /* -
trunk/src/VBox/VMM/IOM.cpp
r19716 r19735 150 150 AssertCompileMemberAlignment(VM, iom.s, 32); 151 151 AssertCompile(sizeof(pVM->iom.s) <= sizeof(pVM->iom.padding)); 152 AssertCompileMemberAlignment(IOM, EmtLock, 8);152 AssertCompileMemberAlignment(IOM, EmtLock, sizeof(uintptr_t)); 153 153 154 154 /* -
trunk/src/VBox/VMM/PDM.cpp
r19682 r19735 325 325 AssertRelease(!(RT_OFFSETOF(VM, pdm.s) & 31)); 326 326 AssertRelease(sizeof(pVM->pdm.s) <= sizeof(pVM->pdm.padding)); 327 327 AssertCompileMemberAlignment(PDM, CritSect, sizeof(uintptr_t)); 328 328 /* 329 329 * Init the structure. -
trunk/src/VBox/VMM/PDMCritSect.cpp
r19718 r19735 151 151 AssertCompile(sizeof(pCritSect->padding) >= sizeof(pCritSect->s)); 152 152 #endif 153 Assert(RT_ALIGN_P(pCritSect, 8) == pCritSect);153 Assert(RT_ALIGN_P(pCritSect, sizeof(uintptr_t)) == pCritSect); 154 154 return pdmR3CritSectInitOne(pVM, &pCritSect->s, pCritSect, pszName); 155 155 } -
trunk/src/VBox/VMM/PGM.cpp
r19682 r19735 1182 1182 */ 1183 1183 AssertCompile(sizeof(pVM->pgm.s) <= sizeof(pVM->pgm.padding)); 1184 AssertCompileMemberAlignment(PGM, CritSect, sizeof(uintptr_t)); 1184 1185 1185 1186 /* -
trunk/src/VBox/VMM/testcase/tstVMStructSize.cpp
r19715 r19735 293 293 294 294 /* TM */ 295 CHECK_MEMBER_ALIGNMENT(TM, EmtLock, 8);296 CHECK_MEMBER_ALIGNMENT(TM, VirtualSyncLock, 8);297 298 CHECK_MEMBER_ALIGNMENT(IOM, EmtLock, 8);299 CHECK_MEMBER_ALIGNMENT(EM, CritSectREM, 8);300 CHECK_MEMBER_ALIGNMENT(PGM, CritSect, 8);301 CHECK_MEMBER_ALIGNMENT(PDM, CritSect, 8);302 CHECK_MEMBER_ALIGNMENT(MMHYPERHEAP, Lock, 8);295 CHECK_MEMBER_ALIGNMENT(TM, EmtLock, sizeof(uintptr_t)); 296 CHECK_MEMBER_ALIGNMENT(TM, VirtualSyncLock, sizeof(uintptr_t)); 297 298 CHECK_MEMBER_ALIGNMENT(IOM, EmtLock, sizeof(uintptr_t)); 299 CHECK_MEMBER_ALIGNMENT(EM, CritSectREM, sizeof(uintptr_t)); 300 CHECK_MEMBER_ALIGNMENT(PGM, CritSect, sizeof(uintptr_t)); 301 CHECK_MEMBER_ALIGNMENT(PDM, CritSect, sizeof(uintptr_t)); 302 CHECK_MEMBER_ALIGNMENT(MMHYPERHEAP, Lock, sizeof(uintptr_t)); 303 303 304 304 /* hwaccm - 32-bit gcc won't align uint64_t naturally, so check. */
Note:
See TracChangeset
for help on using the changeset viewer.