[compiler-rt][NFC] Inclusive language: remove use of sanity check/test

from compiler-rt/lib/tsan

[NFC] As part of using inclusive language within the llvm project, this
patch rewords comments to remove sanity check and sanity test.

Reviewed By: dvyukov

Differential Revision: https://reviews.llvm.org/D124390
This commit is contained in:
Quinn Pham 2022-04-22 16:15:24 -05:00
parent 7714e03175
commit b3e8e43789
6 changed files with 12 additions and 12 deletions

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
//
// Sanity test for Go runtime.
// Test for Go runtime.
//
//===----------------------------------------------------------------------===//

View File

@ -172,7 +172,7 @@ else()
add_asm_sources(TSAN_ASM_SOURCES
tsan_rtl_amd64.S
)
# Sanity check for Go runtime.
# Check for Go runtime.
set(BUILDGO_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/../go/buildgo.sh)
add_custom_target(GotsanRuntimeCheck
COMMAND env "CC=${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}"
@ -186,7 +186,7 @@ else()
add_asm_sources(TSAN_ASM_SOURCES
tsan_rtl_aarch64.S
)
# Sanity check for Go runtime.
# Check for Go runtime.
set(BUILDGO_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/../go/buildgo.sh)
add_custom_target(GotsanRuntimeCheck
COMMAND env "CC=${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}"
@ -200,7 +200,7 @@ else()
add_asm_sources(TSAN_ASM_SOURCES
tsan_rtl_ppc64.S
)
# Sanity check for Go runtime.
# Check for Go runtime.
set(BUILDGO_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/../go/buildgo.sh)
add_custom_target(GotsanRuntimeCheck
COMMAND env "CC=${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}"
@ -218,7 +218,7 @@ else()
add_asm_sources(TSAN_ASM_SOURCES
tsan_rtl_s390x.S
)
# Sanity check for Go runtime.
# Check for Go runtime.
set(BUILDGO_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/../go/buildgo.sh)
add_custom_target(GotsanRuntimeCheck
COMMAND env "CC=${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}"

View File

@ -97,7 +97,7 @@ void InitializeFlags(Flags *f, const char *env, const char *env_option_name) {
ubsan_parser.ParseStringFromEnv("UBSAN_OPTIONS");
#endif
// Sanity check.
// Check flags.
if (!f->report_bugs) {
f->report_thread_leaks = false;
f->report_destroy_locked = false;

View File

@ -169,7 +169,7 @@ else()
add_asm_sources(TSAN_ASM_SOURCES
tsan_rtl_amd64.S
)
# Sanity check for Go runtime.
# Check for Go runtime.
set(BUILDGO_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/../go/buildgo.sh)
add_custom_target(GotsanRuntimeCheck
COMMAND env "CC=${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}"
@ -183,7 +183,7 @@ else()
add_asm_sources(TSAN_ASM_SOURCES
tsan_rtl_aarch64.S
)
# Sanity check for Go runtime.
# Check for Go runtime.
set(BUILDGO_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/../go/buildgo.sh)
add_custom_target(GotsanRuntimeCheck
COMMAND env "CC=${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}"
@ -197,7 +197,7 @@ else()
add_asm_sources(TSAN_ASM_SOURCES
tsan_rtl_ppc64.S
)
# Sanity check for Go runtime.
# Check for Go runtime.
set(BUILDGO_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/../go/buildgo.sh)
add_custom_target(GotsanRuntimeCheck
COMMAND env "CC=${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}"
@ -215,7 +215,7 @@ else()
add_asm_sources(TSAN_ASM_SOURCES
tsan_rtl_s390x.S
)
# Sanity check for Go runtime.
# Check for Go runtime.
set(BUILDGO_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/../go/buildgo.sh)
add_custom_target(GotsanRuntimeCheck
COMMAND env "CC=${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}"

View File

@ -97,7 +97,7 @@ void InitializeFlags(Flags *f, const char *env, const char *env_option_name) {
ubsan_parser.ParseStringFromEnv("UBSAN_OPTIONS");
#endif
// Sanity check.
// Check flags.
if (!f->report_bugs) {
f->report_thread_leaks = false;
f->report_destroy_locked = false;

View File

@ -936,7 +936,7 @@ void TraceSwitchPartImpl(ThreadState* thr) {
// Pathologically large stacks may not fit into the part.
// In these cases we log only fixed number of top frames.
const uptr kMaxFrames = 1000;
// Sanity check that kMaxFrames won't consume the whole part.
// Check that kMaxFrames won't consume the whole part.
static_assert(kMaxFrames < TracePart::kSize / 2, "kMaxFrames is too big");
uptr* pos = Max(&thr->shadow_stack[0], thr->shadow_stack_pos - kMaxFrames);
for (; pos < thr->shadow_stack_pos; pos++) {