mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Reduce the Stack Size of ConstraintSystem
The ConstraintSystem class is on the order of 1000s of bytes in size on the stacka nd is causing issues with dispatch's 64k stack limit. This changes most Small data types which store data on the stack to non small heap based data types.
This commit is contained in:
@@ -2254,7 +2254,7 @@ size_t Solution::getTotalMemory() const {
|
||||
llvm::capacity_in_bytes(Fixes) + DisjunctionChoices.getMemorySize() +
|
||||
OpenedTypes.getMemorySize() + OpenedExistentialTypes.getMemorySize() +
|
||||
(DefaultedConstraints.size() * sizeof(void *)) +
|
||||
llvm::capacity_in_bytes(Conformances);
|
||||
Conformances.size() * sizeof(std::pair<ConstraintLocator *, ProtocolConformanceRef>);
|
||||
}
|
||||
|
||||
DeclName OverloadChoice::getName() const {
|
||||
|
||||
Reference in New Issue
Block a user