Skip to content

Commit 66b62e9

Browse files
authored
Reflection: adjust type definitions for ConcurrentHashMap
Adjust the types of `ConcurrentHashMap` to match the implementation. This field is always a `uint32_t`, which would be misread previously. Thanks to @mikeash for helping identify this.
1 parent c8ab423 commit 66b62e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/Reflection/RuntimeInternals.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ template <typename Runtime> struct MetadataCacheNode {
4949
};
5050

5151
template <typename Runtime> struct ConcurrentHashMap {
52-
typename Runtime::StoredSize ReaderCount;
53-
typename Runtime::StoredSize ElementCount;
52+
typename uint32_t ReaderCount;
53+
typename uint32_t ElementCount;
5454
typename Runtime::StoredPointer Elements;
5555
typename Runtime::StoredPointer Indices;
5656
// We'll ignore the remaining fields for now....

0 commit comments

Comments
 (0)