From da6d7f60608068b0e5a775aeafa992d2c84efc76 Mon Sep 17 00:00:00 2001 From: theraven Date: Sun, 21 Jul 2013 18:03:03 +0000 Subject: [PATCH] Remove ivar offset fudging code, as it appears to break a lot of things. --- ivar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ivar.c b/ivar.c index 471042d..bf4f54f 100644 --- a/ivar.c +++ b/ivar.c @@ -54,6 +54,7 @@ PRIVATE void objc_compute_ivar_offsets(Class class) long ivar_size = (i+1 == class->ivars->count) ? (class_size - ivar->offset) : ivar->offset - class->ivars->ivar_list[i+1].offset; +#if 0 // We only need to do the realignment for things that are // bigger than a pointer, and we don't need to do it in GC mode // where we don't add any extra padding. @@ -76,6 +77,7 @@ PRIVATE void objc_compute_ivar_offsets(Class class) } } } +#endif ivar->offset += ivar_start; /* If we're using the new ABI then we also set up the faster ivar * offset variables.