Skip to content

Commit dffaa9b

Browse files
authored
Merge pull request #41219 from apple/compnerd/padding-metadata
Runtime: make padding explicit for `ElementStorage`
2 parents ef570d1 + bc9b9a5 commit dffaa9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Runtime/Concurrent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ struct ConcurrentReadableHashMap {
812812
/// the first element of a variable-length array, whose size is determined by
813813
/// the allocation.
814814
struct ElementStorage {
815-
uint32_t Capacity;
815+
uintptr_t Capacity : 32;
816816
ElemTy Elem;
817817

818818
static ElementStorage *allocate(size_t capacity) {

0 commit comments

Comments
 (0)