| /src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_mutex.h | 26 atomic_store(&state_, 0, memory_order_relaxed); in Init() 36 return atomic_exchange(&state_, 1, memory_order_acquire) == 0; in TryLock() 40 atomic_store(&state_, 0, memory_order_release); in Unlock() 44 CHECK_EQ(atomic_load(&state_, memory_order_relaxed), 1); in CheckLocked() 48 atomic_uint8_t state_; 76 atomic_uint32_t state_ = {0}; 169 u64 state = atomic_load_relaxed(&state_); in Lock() 186 state = atomic_load(&state_, memory_order_relaxed); in Lock() 189 if (UNLIKELY(!atomic_compare_exchange_weak(&state_, &state, new_state, in Lock() 206 state = atomic_load(&state_, memory_order_relaxed); in Lock() [all …]
|
| H A D | sanitizer_stackdepot.cpp | 119 State state_ SANITIZER_GUARDED_BY(mutex_) = State::NotStarted; 132 if (state_ == State::NotStarted) { in NewWorkNotify() 141 state_ = thread_ ? State::Started : State::Failed; in NewWorkNotify() 143 if (state_ == State::Started) { in NewWorkNotify() 161 if (state_ != State::Started) in Stop() 163 state_ = State::Stopped; in Stop() 175 if (state_ != State::Started) in LockAndStop() 183 state_ = State::NotStarted; in LockAndStop()
|
| H A D | sanitizer_mutex.cpp | 25 if (atomic_load(&state_, memory_order_relaxed) == 0 && in LockSlow() 26 atomic_exchange(&state_, 1, memory_order_acquire) == 0) in LockSlow() 32 u32 count = atomic_load(&state_, memory_order_relaxed); in Wait() 35 FutexWait(&state_, 0); in Wait() 36 count = atomic_load(&state_, memory_order_relaxed); in Wait() 39 if (atomic_compare_exchange_weak(&state_, &count, count - 1, in Wait() 47 atomic_fetch_add(&state_, count, memory_order_release); in Post() 48 FutexWake(&state_, count); in Post()
|
| H A D | sanitizer_symbolizer_libbacktrace.cpp | 163 backtrace_pcinfo((backtrace_state *)state_, addr, SymbolizeCodePCInfoCallback, in SymbolizePC() 167 backtrace_syminfo((backtrace_state *)state_, addr, SymbolizeCodeCallback, in SymbolizePC() 173 backtrace_syminfo((backtrace_state *)state_, addr, SymbolizeDataCallback, in SymbolizeData() 185 (void)state_; in SymbolizePC()
|
| H A D | sanitizer_symbolizer_libbacktrace.h | 43 explicit LibbacktraceSymbolizer(void *state) : state_(state) {} in LibbacktraceSymbolizer() 45 void *state_; // Leaked. variable
|
| /src/contrib/googletest/googletest/test/ |
| H A D | gtest-typed-test_test.cc | 203 state_.AddTestName("foo.cc", 0, "FooTest", "A"); in SetUp() 204 state_.AddTestName("foo.cc", 0, "FooTest", "B"); in SetUp() 205 state_.AddTestName("foo.cc", 0, "FooTest", "C"); in SetUp() 208 TypedTestSuitePState state_; member in TypedTestSuitePStateTest 214 state_.VerifyRegisteredTestNames("Suite", "foo.cc", 1, tests)); in TEST_F() 222 state_.VerifyRegisteredTestNames("Suite", "foo.cc", 1, tests)); in TEST_F() 229 state_.VerifyRegisteredTestNames("Suite", "foo.cc", 1, "A, B, A, C"), in TEST_F() 235 state_.VerifyRegisteredTestNames("Suite", "foo.cc", 1, "A, B, C, D"), in TEST_F() 241 state_.VerifyRegisteredTestNames("Suite", "foo.cc", 1, "A, C"), in TEST_F() 248 state_.VerifyRegisteredTestNames("Suite", "foo.cc", 1, "A, B, C"); in TEST_F() [all …]
|
| /src/contrib/lutok/ |
| H A D | stack_cleaner.cpp | 62 lutok::stack_cleaner::stack_cleaner(state& state_) : in stack_cleaner() argument 63 _pimpl(new impl(state_, state_.get_top())) in stack_cleaner()
|
| H A D | c_gate.cpp | 37 lutok::state_c_gate::state_c_gate(state& state_) : in state_c_gate() argument 38 _state(state_) in state_c_gate()
|
| H A D | test_utils.hpp | 110 stack_balance_checker(lutok::state& state_, in stack_balance_checker() argument 112 _state(state_), in stack_balance_checker()
|
| H A D | exceptions.cpp | 81 lutok::api_error::from_stack(state& state_, const std::string& api_function_) in from_stack() argument 83 lua_State* raw_state = lutok::state_c_gate(state_).c_state(); in from_stack()
|
| /src/contrib/googletest/googlemock/include/gmock/ |
| H A D | gmock-actions.h | 966 : state_(new State(std::move(input_value))) {} 970 explicit Impl(const R& input_value) : state_(new State(input_value)) {} 972 U operator()() && { return std::move(state_->value); } 973 U operator()() const& { return state_->value; } 1086 const std::shared_ptr<State> state_; 1101 : state_(new State(std::move(wrapper.payload))) {} 1104 GTEST_CHECK_(!state_->called) 1107 state_->called = true; 1108 return std::move(state_->value); 1121 const std::shared_ptr<State> state_; [all …]
|
| /src/contrib/googletest/googletest/include/gtest/internal/ |
| H A D | gtest-internal.h | 845 explicit Random(uint32_t seed) : state_(seed) {} in Random() 847 void Reseed(uint32_t seed) { state_ = seed; } in Reseed() 854 uint32_t state_;
|
| /src/contrib/googletest/googletest/src/ |
| H A D | gtest.cc | 420 state_ = static_cast<uint32_t>(1103515245ULL * state_ + 12345U) % kMaxRange; in Generate() 430 return state_ % range; in Generate()
|