@@ -818,8 +818,8 @@ class RefCounts {
818
818
HeapObject *increment (uint32_t inc = 1 ) {
819
819
auto oldbits = refCounts.load (SWIFT_MEMORY_ORDER_CONSUME);
820
820
821
- // constant propagation will remove this in swift_retain, it should only
822
- // be present in swift_retain_n
821
+ // Constant propagation will remove this in swift_retain, it should only
822
+ // be present in swift_retain_n.
823
823
if (inc != 1 && oldbits.isImmortal (true )) {
824
824
return getHeapObject ();
825
825
}
@@ -842,8 +842,8 @@ class RefCounts {
842
842
void incrementNonAtomic (uint32_t inc = 1 ) {
843
843
auto oldbits = refCounts.load (SWIFT_MEMORY_ORDER_CONSUME);
844
844
845
- // constant propagation will remove this in swift_retain, it should only
846
- // be present in swift_retain_n
845
+ // Constant propagation will remove this in swift_retain, it should only
846
+ // be present in swift_retain_n.
847
847
if (inc != 1 && oldbits.isImmortal (true )) {
848
848
return ;
849
849
}
@@ -921,7 +921,7 @@ class RefCounts {
921
921
// Non-atomically release the last strong reference and mark the
922
922
// object as deiniting.
923
923
//
924
- // Precondition: the reference count must be 1
924
+ // Precondition: the reference count must be 1.
925
925
SWIFT_ALWAYS_INLINE
926
926
void decrementFromOneNonAtomic () {
927
927
auto bits = refCounts.load (SWIFT_MEMORY_ORDER_CONSUME);
@@ -1062,8 +1062,8 @@ class RefCounts {
1062
1062
bool deinitNow;
1063
1063
auto newbits = oldbits;
1064
1064
1065
- // constant propagation will remove this in swift_release, it should only
1066
- // be present in swift_release_n
1065
+ // Constant propagation will remove this in swift_release, it should only
1066
+ // be present in swift_release_n.
1067
1067
if (dec != 1 && oldbits.isImmortal (true )) {
1068
1068
return false ;
1069
1069
}
@@ -1110,8 +1110,8 @@ class RefCounts {
1110
1110
auto oldbits = refCounts.load (SWIFT_MEMORY_ORDER_CONSUME);
1111
1111
RefCountBits newbits;
1112
1112
1113
- // constant propagation will remove this in swift_release, it should only
1114
- // be present in swift_release_n
1113
+ // Constant propagation will remove this in swift_release, it should only
1114
+ // be present in swift_release_n.
1115
1115
if (dec != 1 && oldbits.isImmortal (true )) {
1116
1116
return false ;
1117
1117
}
0 commit comments