mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Alter the value metadata layout to use an absolute pointer for the nominal type descriptor rather than a relative offset relative to the complete type metadata. Although this is slightly less efficient in terms of load times, this is more portable across different environments. For example, PE/COFF does not provide a cross-section relative offset relocation. Other platform ports are unable to provide a 64-bit relative offset encoding. Given that the value witness table reference in the value metadata is currently an absolute pointer, this page is most likely going to be dirtied by the loader.
4.2 KiB
4.2 KiB