File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
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,12 +147,6 @@ 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
155
-
156
150
#define SIZEOF_SUPERMAPS (BYTES_PER_SUPERMAP * SUPERMAPS_PER_MAGAZINE)
157
151
#define SIZEOF_MAPS (BYTES_PER_BITMAP * BITMAPS_PER_SUPERMAP * \
158
152
SUPERMAPS_PER_MAGAZINE)
@@ -162,12 +156,12 @@ typedef unsigned long bitmap_t;
162
156
// we want to align the maps to a continuation size, but we must also have proper padding
163
157
// so that we can perform first_bitmap_in_same_page()
164
158
#define SUPERMAPS_TO_MAPS_PADDING (PADDING_TO_BITMAP_ALIGNMENT_AND_CONTINUATION_SIZE( \
165
- SIZEOF_SUPERMAPS + HEADER_TO_SUPERMAPS_PADDING + SIZEOF_HEADER ))
159
+ SIZEOF_SUPERMAPS + HEADER_TO_SUPERMAPS_PADDING + sizeof(struct dispatch_magazine_header_s) ))
166
160
167
161
#define MAPS_TO_FPMAPS_PADDING (PADDING_TO_CONTINUATION_SIZE(SIZEOF_MAPS))
168
162
169
163
#define BYTES_LEFT_IN_FIRST_PAGE (BYTES_PER_PAGE - \
170
- (SIZEOF_HEADER + HEADER_TO_SUPERMAPS_PADDING + SIZEOF_SUPERMAPS + \
164
+ (sizeof(struct dispatch_magazine_header_s) + HEADER_TO_SUPERMAPS_PADDING + SIZEOF_SUPERMAPS + \
171
165
SUPERMAPS_TO_MAPS_PADDING + SIZEOF_MAPS + MAPS_TO_FPMAPS_PADDING))
172
166
173
167
#if PACK_FIRST_PAGE_WITH_CONTINUATIONS
You can’t perform that action at this time.
0 commit comments