VirtualBox

Changeset 25060 in vbox


Ignore:
Timestamp:
Nov 27, 2009 6:19:10 PM (15 years ago)
Author:
vboxsync
Message:

heapoffset.cpp: stricter assertions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/alloc/heapoffset.cpp

    r25059 r25060  
    7474    uint32_t                            fFlags;
    7575} RTHEAPOFFSETBLOCK;
    76 AssertCompileSizeAlignment(RTHEAPOFFSETBLOCK, 16);
     76AssertCompileSize(RTHEAPOFFSETBLOCK, 16);
    7777
    7878/** The block is free if this flag is set. When cleared it's allocated. */
     
    134134    uint32_t                        Alignment;
    135135} RTHEAPOFFSETFREE;
    136 AssertCompileSizeAlignment(RTHEAPOFFSETFREE, 16);
     136AssertCompileSize(RTHEAPOFFSETFREE, 16+16);
    137137
    138138
     
    154154    /** Free tail pointer. */
    155155    uint32_t /*PRTHEAPOFFSETFREE*/  offFreeTail;
    156     /** Make the size of this structure is a multiple of 32. */
     156    /** Make the size of this structure 32 bytes. */
    157157    uint32_t                        au32Alignment[3];
    158158} RTHEAPOFFSETINTERNAL;
    159 AssertCompileSizeAlignment(RTHEAPOFFSETINTERNAL, 32);
     159AssertCompileSize(RTHEAPOFFSETINTERNAL, 32);
    160160
    161161
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