VirtualBox

Changeset 19717 in vbox for trunk


Ignore:
Timestamp:
May 15, 2009 9:00:30 AM (16 years ago)
Author:
vboxsync
Message:

Alignment fixes

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/TM.cpp

    r19709 r19717  
    185185     * Assert alignment and sizes.
    186186     */
    187     AssertRelease(!(RT_OFFSETOF(VM, tm.s) & 31));
    188     AssertRelease(sizeof(pVM->tm.s) <= sizeof(pVM->tm.padding));
     187    AssertCompileMemberAlignment(VM, tm.s, 32);
     188    AssertCompile(sizeof(pVM->tm.s) <= sizeof(pVM->tm.padding));
     189    AssertCompileMemberAlignment(TM, EmtLock, 8);
     190    AssertCompileMemberAlignment(TM, VirtualSyncLock, 8);
    189191
    190192    /*
  • trunk/src/VBox/VMM/TMInternal.h

    r19709 r19717  
    432432    /** Indicates that the virtual sync queue is being run. */
    433433    bool volatile               fRunningVirtualSyncQueue;
     434    /* Alignment */
     435    bool                        u8Alignment[2];
    434436
    435437    /** Lock serializing EMT access to TM. */
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