Skip to content

Commit e1c47cf

Browse files
mikeashairspeedswift
authored andcommitted
[Runtime] Comment the MetadataAllocatorTags enum.
1 parent aea7d03 commit e1c47cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/swift/Runtime/Metadata.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ namespace swift {
2525
#pragma clang diagnostic push
2626
#pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
2727

28+
// Tags used to denote different kinds of allocations made with the metadata
29+
// allocator. This is encoded in a header on each allocation when metadata
30+
// iteration is enabled, and allows tools to know where each allocation came
31+
// from.
32+
//
33+
// Some of these values are also declared in SwiftRemoteMirrorTypes.h. Those
34+
// values must be kept stable to preserve compatibility.
2835
enum MetadataAllocatorTags : uint16_t {
2936
UnusedTag = 0,
3037
BoxesTag,

0 commit comments

Comments
 (0)