Background: this project aims to implement reflection on Swift Types. It provides mechanisms for dynamically creating instances of classes and structs, and support for KVC on them.
I'm trying to resolve this issue, a crash that only occurs on x86. It looks like class instances are being over or under-released, judging by the stack trace. They're initializing the retain count to 2 here. The class layout they're using can be found here.
I did find TypeLayout.rst, but it has left us with a mysterious TODO in the class layout section, and it doesn't provide any detailed/visual description of the layout.
Can anyone point me to a file that documents the layout of the class header on x86? Any help is appreciated :)