VirtualBox

Changeset 38858 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 23, 2011 7:48:29 PM (13 years ago)
Author:
vboxsync
Message:

Additions/common/VBoxGuest: removed structure padding which no one can justify convincingly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuestInternal.h

    r38857 r38858  
    159159     * together inside the session spinlock. */
    160160    uint32_t volatile           fMouseStatus;
    161     /** Align the next bit on a 64-byte boundary and make sure it starts at the same
    162      *  offset in both 64-bit and 32-bit builds.
    163      *
    164      * @remarks The alignments of the members that are larger than 48 bytes should be
    165      *          64-byte for cache line reasons. structs containing small amounts of
    166      *          data could be lumped together at the end with a < 64 byte padding
    167      *          following it (to grow into and align the struct size).
    168      */
    169     uint8_t abAlignment1[HC_ARCH_BITS == 32 ? 20 : 0];
    170161
    171162    /** Windows part. */
     
    175166        VBOXGUESTDEVEXTWIN          s;
    176167#endif
    177         uint8_t                     padding[256];      /* Multiple of 64; fix me! */
    178168    } win;
    179169
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