mirror of
https://github.com/apple/swift.git
synced 2025-12-25 12:15:36 +01:00
- doesClassMetadataRequireRelocation() -- returns true if we must allocate new metadata at runtime and fill it in, because the class has multiple instantiations (generic case) or because the total size of the metadata is not known at compile time (resilient ancestry). - doesClassMetadataRequireInitialization() -- weaker condition than the above. It's true if the metadata must be relocated, but it is also true if the metadata has otherwise fixed size but must be filled in dynamically. This occurs if the class has generic ancestry but is itself not generic, or if the class has resiliently-sized fields, or missing members. For now, we don't actually care about the distinciton anywhere, because we cannot do in-place initialization of class metadata yet.
2.0 KiB
2.0 KiB