mirror of
https://github.com/darlinghq/darling-libobjc2.git
synced 2025-03-03 06:06:05 +00:00
Sync on the metaclass, not the class, since that's what we're actually testing...
This commit is contained in:
parent
f9d1b5f356
commit
709f238364
5
dtable.c
5
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user