instance_sizeof Even though the instance has two fields, the compiler always includes an extra field for the type id of the object. That’s why the instance size ends up being 12 and not 8.