[PATCH] D63783: [scudo] Correct a behavior on the shared TSD registry
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 25 13:07:58 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3ad32a037efc: [scudo] Correct a behavior on the shared TSD registry (authored by cryptoad).
Changed prior to commit:
https://reviews.llvm.org/D63783?vs=206500&id=206517#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63783/new/
https://reviews.llvm.org/D63783
Files:
compiler-rt/lib/scudo/scudo_tsd_shared.cpp
compiler-rt/lib/scudo/standalone/tsd_shared.h
Index: compiler-rt/lib/scudo/standalone/tsd_shared.h
===================================================================
--- compiler-rt/lib/scudo/standalone/tsd_shared.h
+++ compiler-rt/lib/scudo/standalone/tsd_shared.h
@@ -126,9 +126,7 @@
}
const uptr Precedence = TSDs[Index].getPrecedence();
// A 0 precedence here means another thread just locked this TSD.
- if (UNLIKELY(Precedence == 0))
- continue;
- if (Precedence < LowestPrecedence) {
+ if (Precedence && Precedence < LowestPrecedence) {
CandidateTSD = &TSDs[Index];
LowestPrecedence = Precedence;
}
Index: compiler-rt/lib/scudo/scudo_tsd_shared.cpp
===================================================================
--- compiler-rt/lib/scudo/scudo_tsd_shared.cpp
+++ compiler-rt/lib/scudo/scudo_tsd_shared.cpp
@@ -83,9 +83,7 @@
}
const uptr Precedence = TSDs[Index].getPrecedence();
// A 0 precedence here means another thread just locked this TSD.
- if (UNLIKELY(Precedence == 0))
- continue;
- if (Precedence < LowestPrecedence) {
+ if (Precedence && Precedence < LowestPrecedence) {
CandidateTSD = &TSDs[Index];
LowestPrecedence = Precedence;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63783.206517.patch
Type: text/x-patch
Size: 1267 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190625/ee601fd1/attachment.bin>
More information about the llvm-commits
mailing list