File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ static std::atomic<ObjCBridgeWitnessCacheEntry> _objcBridgeWitnessCache = {};
215
215
216
216
static const _ObjectiveCBridgeableWitnessTable *
217
217
findBridgeWitness (const Metadata *T) {
218
- auto cached = _objcBridgeWitnessCache.load (std::memory_order_relaxed );
218
+ auto cached = _objcBridgeWitnessCache.load (SWIFT_MEMORY_ORDER_CONSUME );
219
219
if (cached.metadata == T) {
220
220
return cached.witness ;
221
221
}
@@ -226,7 +226,7 @@ findBridgeWitness(const Metadata *T) {
226
226
.metadata = T,
227
227
.witness = result
228
228
};
229
- _objcBridgeWitnessCache.store (cached, std::memory_order_relaxed );
229
+ _objcBridgeWitnessCache.store (cached, std::memory_order_release );
230
230
return result;
231
231
}
232
232
You can’t perform that action at this time.
0 commit comments