VirtualBox

Ignore:
Timestamp:
Sep 9, 2009 9:58:49 PM (15 years ago)
Author:
vboxsync
Message:

VMM: Realigned VM and VMCPU members for 64 byte cache lines. Made VMCPU and VM::aCpus page aligned for potentially increasing the TLB efficiency. (This is expected to burn on 64-bit hosts.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSizeGC.cpp

    r22839 r22885  
    9494#include <stdio.h>
    9595
    96 #define GEN_CHECK_SIZE(s)   printf("    CHECK_SIZE(%s, %d);\n", #s, (int)sizeof(s))
    97 #define GEN_CHECK_OFF(s, m) printf("    CHECK_OFF(%s, %d, %s);\n", #s, (int)RT_OFFSETOF(s, m), #m)
    98 #define GEN_CHECK_PADDING(s, m) printf("    CHECK_PADDING(%s, %s);\n", #s, #m)
     96#define GEN_CHECK_SIZE(s)           printf("    CHECK_SIZE(%s, %d);\n", #s, (int)sizeof(s))
     97#define GEN_CHECK_OFF(s, m)         printf("    CHECK_OFF(%s, %d, %s);\n", #s, (int)RT_OFFSETOF(s, m), #m)
     98#define GEN_CHECK_PADDING(s, m, a)  printf("    CHECK_PADDING(%s, %s, %u);\n", #s, #m, (a))
    9999
    100100int main()
     
    141141    GEN_CHECK_OFF(PCIDEVICE, Int.s.pfnBridgeConfigRead);
    142142    GEN_CHECK_OFF(PCIDEVICE, Int.s.pfnBridgeConfigWrite);
    143     GEN_CHECK_PADDING(PCIDEVICE, Int);
     143    GEN_CHECK_PADDING(PCIDEVICE, Int, 8);
    144144    GEN_CHECK_SIZE(PIIX3State);
    145145    GEN_CHECK_SIZE(PCIBUS);
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