Skip to content

Commit 1d6d566

Browse files
authored
chore: fix some comments to improve readability (#60371)
fix some comments to improve readability Signed-off-by: wangjingcun <[email protected]>
1 parent 7608cb0 commit 1d6d566

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

‎src/clangsa/GCChecker.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ bool GCChecker::isSafepoint(const CallEvent &Call, CheckerContext &C) const{
919919
// A pseudo-destructor is an expression that looks like a member
920920
// access to a destructor of a scalar type. A pseudo-destructor
921921
// expression has no run-time semantics beyond evaluating the base
922-
// expression (which would have it's own CallEvent, if applicable).
922+
// expression (which would have its own CallEvent, if applicable).
923923
isCalleeSafepoint = false;
924924
}
925925
} elseif (FD){
@@ -1717,7 +1717,7 @@ void GCChecker::checkLocation(SVal SLoc, bool IsLoad, const Stmt *S,
17171717
}
17181718
}
17191719
}
1720-
// If it's just the symbol by itself, let it be. We allow dead pointer to be
1720+
// If it's just the symbol by itself, let it be. We allow dead pointers to be
17211721
// passed around, so long as they're not accessed. However, we do want to
17221722
// start tracking any globals that may have been accessed.
17231723
if (rootRegionIfGlobal(SLoc.getAsRegion(), State, C)){

‎src/debuginfo.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ static DW_EH_PE parseCIE(const uint8_t *Addr, const uint8_t *End) JL_NOTSAFEPOIN
14491449
else{
14501450
p = consume_leb128(p, cie_end);
14511451
}
1452-
// Now it's the augmentation data. which may have the information we
1452+
// Now it's the augmentation data, which may have the information we
14531453
// are interested in...
14541454
for (constchar *augp = augmentation;augp++){
14551455
switch (*augp){

‎src/features_x86.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ JL_FEATURE_DEF_NAME(amx_complex, 32 * 10 + 8, 170000, "amx-complex")
136136
JL_FEATURE_DEF(avxvnniint16, 32*10+10, 170000)
137137
JL_FEATURE_DEF(prefetchi, 32*10+14, 160000)
138138
JL_FEATURE_DEF(usermsr, 32*10+15, 170000)
139-
// JL_FEATURE_DEF(avx10, 32 * 10 + 19, 170000) // TODO: What to do about avx10 and it's mess?
139+
// JL_FEATURE_DEF(avx10, 32 * 10 + 19, 170000) // TODO: What to do about avx10 and its mess?
140140
// JL_FEATURE_DEF(apxf, 32 * 10 + 21, 190000)
141141

142142
// EAX=0x14,ECX=0: EBX

‎src/subtype.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4840,7 +4840,7 @@ static jl_value_t *insert_nondiagonal(jl_value_t *type, jl_varbinding_t *troot,
48404840
JL_GC_POP();
48414841
}
48424842
elseif (jl_is_vararg(type)){
4843-
// As for Vararg we'd better widen it's var to ub as otherwise they are still diagonal
4843+
// As for Vararg we'd better widen its var to ub as otherwise they are still diagonal
48444844
jl_value_t*t=jl_unwrap_vararg(type);
48454845
jl_value_t*n=jl_unwrap_vararg_num(type);
48464846
if (widen2ub==0)

‎src/threading.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ static inline ssize_t jl_check_tls_bound(void *tp, jl_gcframe_t ***k0, size_t tl
618618
returnoffset;
619619
}
620620
# elifJL_ELF_TLS_VARIANT==2
621-
// In Variant 2, the static TLS buffer comes before a unknown size TCB.
621+
// In Variant 2, the static TLS buffer comes before an unknown size TCB.
622622
// The alignment needs to be applied to the new size.
623623
staticinlinesize_tjl_add_tls_size(size_torig_size, size_tsize, size_talign)
624624
{
@@ -738,7 +738,7 @@ void jl_init_threading(void)
738738
if (errno!=0||endptr==cp||nthreads <= 0)
739739
nthreads=1;
740740
cp=endptr;
741-
if (nthreads==1) // User asked for 1 thread so lets assume they dont want an interactive thread
741+
if (nthreads==1) // User asked for 1 thread so let's assume they don't want an interactive thread
742742
nthreadsi=0;
743743
}
744744
if (*cp==','){

0 commit comments

Comments
(0)