Sync on the metaclass, not the class, since that's what we're actually testing...

This commit is contained in:
theraven 2011-04-20 09:40:48 +00:00
parent f9d1b5f356
commit 709f238364

View File

@ -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