Skip to content

Commit

Permalink
fix objc_resolve_class_links to actually rescan the unresolved list
Browse files Browse the repository at this point in the history
It looks like this was the initial intent of 4ea82e1, but as implemented
it would still only scan the unresolved class list once. Since
unresolved_class_list represents the head and classes are pushed onto
the head, any classes added to the resolution list after resolution
started would be skipped.
  • Loading branch information
DHowett committed Jan 22, 2018
1 parent aa58f6f commit f503a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,10 @@ PRIVATE BOOL objc_resolve_class(Class cls)
PRIVATE void objc_resolve_class_links(void)
{
LOCK_RUNTIME_FOR_SCOPE();
Class class = unresolved_class_list;
BOOL resolvedClass;
do
{
Class class = unresolved_class_list;
resolvedClass = NO;
while ((Nil != class))
{
Expand Down

0 comments on commit f503a3d

Please sign in to comment.