Skip to content

[SR-3340] Evaluate the ABI for existential container storage. #45928

Closed
@atrick

Description

@atrick
Previous ID SR-3340
Radar rdar://problem/18070569
Original Reporter @atrick
Type Task
Status Resolved
Resolution Won't Do
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Task, AffectsABI
Assignee @aschwaighofer
Priority Medium

md5: 31d69b1f204991e8e7149c604841e45d

Issue Description:

We currently reserve 3 words of inline storage for existential containers. We may want to reevaluate this decision for codifying it. This might be too small for important patterns. e.g. NSRect does not fit.

We also need to consider whether we want to stack allocate local existential boxes (when the type doesn't fit in the inline buffer).

This is a secondary ABI concern. i.e. it would be nice to reevaluate the current design before the final ABI lock down.

Metadata

Metadata

Assignees

Labels

affects ABIFlag: Affects ABIcompilerThe Swift compiler itself

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions