Skip to content

Commit ed4e3b9

Browse files
committed
[Runtime] Fix up the URC overflow test and support code after merging the latest master.
rdar://problem/33765960
1 parent f2b89d1 commit ed4e3b9

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

stdlib/public/SwiftShims/RefCount.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,11 +1277,6 @@ class RefCounts {
12771277
// Note that this is not equal to the number of outstanding weak pointers.
12781278
uint32_t getWeakCount() const;
12791279

1280-
HeapObjectSideTableEntry *getSideTable() const {
1281-
auto bits = refCounts.load(SWIFT_MEMORY_ORDER_CONSUME);
1282-
return bits.getSideTable();
1283-
}
1284-
12851280
private:
12861281
HeapObject *getHeapObject();
12871282

@@ -1469,7 +1464,7 @@ class HeapObjectSideTableEntry {
14691464
return refCounts.getWeakCount();
14701465
}
14711466

1472-
HeapObjectSideTableEntry *getSideTable() {
1467+
void *getSideTable() {
14731468
return refCounts.getSideTable();
14741469
}
14751470
};

unittests/runtime/LongTests/LongRefcounting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ TEST(LongRefcountingTest, lifecycle_live_deiniting_urc_overflow_to_side) {
10781078
swift_unownedRetain(object);
10791079
}
10801080

1081-
side = object->refCounts.getSideTable();
1081+
side = reinterpret_cast<HeapObjectSideTableEntry *>(object->refCounts.getSideTable());
10821082
EXPECT_ALLOCATED(side);
10831083

10841084
for (uint64_t i = 0; i < urcOverflowCount; i++) {

0 commit comments

Comments
 (0)