From 709f2383648ee3373953a7b044d5b241a72a01f4 Mon Sep 17 00:00:00 2001 From: theraven Date: Wed, 20 Apr 2011 09:40:48 +0000 Subject: [PATCH] Sync on the metaclass, not the class, since that's what we're actually testing... --- dtable.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dtable.c b/dtable.c index 5493cd8..b1eb56a 100644 --- a/dtable.c +++ b/dtable.c @@ -543,9 +543,6 @@ LEGACY void update_dispatch_table_for_class(Class cls) void objc_resolve_class(Class); -int objc_sync_enter(id); -int objc_sync_exit(id); - __attribute__((unused)) static void objc_release_object_lock(id *x) { objc_sync_exit(*x); @@ -649,7 +646,7 @@ PRIVATE void objc_send_initialize(id object) return; } - LOCK_OBJECT_FOR_SCOPE((id)class); + LOCK_OBJECT_FOR_SCOPE((id)meta); // Create an entry in the dtable look-aside buffer for this. When sending