File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -603,8 +603,6 @@ _dispatch_alloc_init(void)
603
603
604
604
dispatch_assert (sizeof (bitmap_t ) == BYTES_PER_BITMAP );
605
605
dispatch_assert (sizeof (bitmap_t ) == BYTES_PER_SUPERMAP );
606
- dispatch_assert (sizeof (struct dispatch_magazine_header_s ) ==
607
- SIZEOF_HEADER );
608
606
609
607
dispatch_assert (sizeof (struct dispatch_continuation_s ) <=
610
608
DISPATCH_CONTINUATION_SIZE );
@@ -614,8 +612,6 @@ _dispatch_alloc_init(void)
614
612
dispatch_assert (sizeof (struct dispatch_magazine_s ) == BYTES_PER_MAGAZINE );
615
613
616
614
// The header and maps sizes should match what we computed.
617
- dispatch_assert (SIZEOF_HEADER ==
618
- sizeof (((struct dispatch_magazine_s * )0x0 )-> header ));
619
615
dispatch_assert (SIZEOF_MAPS ==
620
616
sizeof (((struct dispatch_magazine_s * )0x0 )-> maps ));
621
617
Original file line number Diff line number Diff line change @@ -147,11 +147,7 @@ typedef unsigned long bitmap_t;
147
147
148
148
#define PADDING_TO_CONTINUATION_SIZE (x ) (ROUND_UP_TO_CONTINUATION_SIZE(x) - (x))
149
149
150
- #if defined(__LP64__ )
151
- #define SIZEOF_HEADER 16
152
- #else
153
- #define SIZEOF_HEADER 8
154
- #endif
150
+ #define SIZEOF_HEADER (sizeof(struct dispatch_magazine_header_s))
155
151
156
152
#define SIZEOF_SUPERMAPS (BYTES_PER_SUPERMAP * SUPERMAPS_PER_MAGAZINE)
157
153
#define SIZEOF_MAPS (BYTES_PER_BITMAP * BITMAPS_PER_SUPERMAP * \
You can’t perform that action at this time.
0 commit comments