Skip to content

Commit 5427986

Browse files
authored
Merge pull request #36228 from ktoso/wip-groups-towards-clean-abi
[TaskGroup] Towards ABI stability of groups
2 parents a929016 + aedbbe6 commit 5427986

File tree

12 files changed

+638
-489
lines changed

12 files changed

+638
-489
lines changed

include/swift/ABI/MetadataValues.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ enum {
4646
/// The number of words (in addition to the heap-object header)
4747
/// in a default actor.
4848
NumWords_DefaultActor = 10,
49+
50+
/// The number of words in a task group.
51+
NumWords_TaskGroup = 32,
4952
};
5053

5154
struct InProcess;
@@ -121,6 +124,9 @@ const size_t MaximumAlignment = 16;
121124
/// The alignment of a DefaultActor.
122125
const size_t Alignment_DefaultActor = MaximumAlignment;
123126

127+
/// The alignment of a TaskGroup.
128+
const size_t Alignment_TaskGroup = MaximumAlignment;
129+
124130
/// Flags stored in the value-witness table.
125131
template <typename int_type>
126132
class TargetValueWitnessFlags {

0 commit comments

Comments
 (0)