We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01c4f45 commit baf827fCopy full SHA for baf827f
llvm/lib/DWARFLinker/Parallel/ArrayList.h
@@ -49,7 +49,7 @@ template <typename T, size_t ItemsGroupSize = 512> class ArrayList {
49
if (!CurGroup->Next)
50
allocateNewGroup(CurGroup->Next);
51
52
- LastGroup.compare_exchange_strong(CurGroup, CurGroup->Next);
+ LastGroup.compare_exchange_weak(CurGroup, CurGroup->Next);
53
} while (true);
54
55
// Store item into the current group.
@@ -145,7 +145,7 @@ template <typename T, size_t ItemsGroupSize = 512> class ArrayList {
145
ItemsGroup *NextGroup = CurGroup->Next;
146
147
if (!NextGroup) {
148
- if (CurGroup->Next.compare_exchange_strong(NextGroup, NewGroup))
+ if (CurGroup->Next.compare_exchange_weak(NextGroup, NewGroup))
149
break;
150
}
151
0 commit comments