HomeSort by relevance Sort by last modified time
    Searched full:threadstate (Results 1 - 25 of 164) sorted by null

1 2 3 4 5 6 7

  /external/v8/src/
v8threads.h 14 class ThreadState {
17 ThreadState* Next();
38 explicit ThreadState(ThreadManager* thread_manager);
39 ~ThreadState();
46 ThreadState* next_;
47 ThreadState* previous_;
90 ThreadState* FirstThreadStateInUse();
91 ThreadState* GetFreeThreadState();
97 void DeleteThreadStateList(ThreadState* anchor);
104 ThreadState* lazily_archived_thread_state_
    [all...]
v8threads.cc 110 lazily_archived_thread_state_->LinkInto(ThreadState::FREE_LIST);
132 ThreadState* state = per_thread->thread_state();
148 state->LinkInto(ThreadState::FREE_LIST);
177 ThreadState::ThreadState(ThreadManager* thread_manager)
187 ThreadState::~ThreadState() {
192 void ThreadState::AllocateSpace() {
197 void ThreadState::Unlink() {
203 void ThreadState::LinkInto(List list)
    [all...]
  /external/compiler-rt/lib/tsan/rtl/
tsan_fd.h 42 void FdAcquire(ThreadState *thr, uptr pc, int fd);
43 void FdRelease(ThreadState *thr, uptr pc, int fd);
44 void FdAccess(ThreadState *thr, uptr pc, int fd);
45 void FdClose(ThreadState *thr, uptr pc, int fd, bool write = true);
46 void FdFileCreate(ThreadState *thr, uptr pc, int fd);
47 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd, bool write);
48 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd);
49 void FdEventCreate(ThreadState *thr, uptr pc, int fd);
50 void FdSignalCreate(ThreadState *thr, uptr pc, int fd);
51 void FdInotifyCreate(ThreadState *thr, uptr pc, int fd)
    [all...]
tsan_rtl.h 331 // In C++ it is tied to an OS thread just like ThreadState, however ideally
334 // ThreadState's (which are tied to Gs).
335 // A ThreadState must be wired with a Processor to handle events.
337 ThreadState *thr; // currently wired thread, or nullptr
359 struct ThreadState {
368 // QUESTION: can we can squeeze this into ThreadState::Fast?
369 // E.g. ThreadState::Fast is a 44-bit, 32 are taken by synch_epoch and 12 are
440 explicit ThreadState(Context *ctx, int tid, int unique_id, u64 epoch,
448 ThreadState *cur_thread();
453 INLINE ThreadState *cur_thread()
    [all...]
tsan_interceptors.h 11 ScopedInterceptor(ThreadState *thr, const char *fname, uptr pc);
16 ThreadState *const thr_;
24 ThreadState *thr = cur_thread(); \
tsan_platform_mac.cc 70 // the ThreadState object. The main thread's ThreadState is stored separately
74 ALIGNED(64) static char main_thread_state[sizeof(ThreadState)];
76 ThreadState *cur_thread() {
79 return (ThreadState *)&main_thread_state;
81 ThreadState **fake_tls = (ThreadState **)MemToShadow(thread_identity);
82 ThreadState *thr = (ThreadState *)SignalSafeGetOrAllocate(
83 (uptr *)fake_tls, sizeof(ThreadState));
    [all...]
tsan_fd.cc 50 static FdSync *allocsync(ThreadState *thr, uptr pc) {
63 static void unref(ThreadState *thr, uptr pc, FdSync *s) {
74 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) {
94 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s,
128 void FdOnFork(ThreadState *thr, uptr pc) {
160 void FdAcquire(ThreadState *thr, uptr pc, int fd) {
171 void FdRelease(ThreadState *thr, uptr pc, int fd) {
182 void FdAccess(ThreadState *thr, uptr pc, int fd) {
190 void FdClose(ThreadState *thr, uptr pc, int fd, bool write) {
218 void FdFileCreate(ThreadState *thr, uptr pc, int fd)
    [all...]
tsan_mman.h 30 void *user_alloc(ThreadState *thr, uptr pc, uptr sz,
32 void *user_calloc(ThreadState *thr, uptr pc, uptr sz, uptr n);
34 void user_free(ThreadState *thr, uptr pc, void *p, bool signal = true);
35 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz);
36 void *user_alloc_aligned(ThreadState *thr, uptr pc, uptr sz, uptr align);
tsan_mman.cc 83 ThreadState *thr = cur_thread();
106 ThreadState *thr = cur_thread();
135 static void SignalUnsafeCall(ThreadState *thr, uptr pc) {
149 void *user_alloc(ThreadState *thr, uptr pc, uptr sz, uptr align, bool signal) {
162 void *user_calloc(ThreadState *thr, uptr pc, uptr size, uptr n) {
171 void user_free(ThreadState *thr, uptr pc, void *p, bool signal) {
180 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write) {
189 void OnUserFree(ThreadState *thr, uptr pc, uptr p, bool write) {
197 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz) {
227 ThreadState *thr = cur_thread()
    [all...]
tsan_rtl_thread.cc 43 ThreadState *caller_thr = static_cast<ThreadState *>(arg);
49 ThreadState *thr;
76 ThreadState *thr1 = static_cast<ThreadState*>(arg);
81 ThreadState *thr;
95 new(thr) ThreadState(ctx, tid, unique_id, epoch0, reuse_count,
138 thr->~ThreadState();
185 static void ThreadCheckIgnore(ThreadState *thr) {
194 static void ThreadCheckIgnore(ThreadState *thr) {
    [all...]
tsan_rtl_mutex.cc 26 void ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r);
29 ThreadState *thr;
32 Callback(ThreadState *thr, uptr pc)
43 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s) {
49 static void ReportMutexMisuse(ThreadState *thr, uptr pc, ReportType typ,
65 void MutexCreate(ThreadState *thr, uptr pc, uptr addr,
84 void MutexDestroy(ThreadState *thr, uptr pc, uptr addr) {
144 void MutexLock(ThreadState *thr, uptr pc, uptr addr, int rec, bool try_lock) {
189 int MutexUnlock(ThreadState *thr, uptr pc, uptr addr, bool all) {
232 void MutexReadLock(ThreadState *thr, uptr pc, uptr addr, bool trylock)
    [all...]
tsan_interface_atomic.cc 223 static T AtomicLoad(ThreadState *thr, uptr pc, const volatile T *a,
253 static void AtomicStore(ThreadState *thr, uptr pc, volatile T *a, T v,
276 static T AtomicRMW(ThreadState *thr, uptr pc, volatile T *a, T v, morder mo) {
333 static T AtomicExchange(ThreadState *thr, uptr pc, volatile T *a, T v,
339 static T AtomicFetchAdd(ThreadState *thr, uptr pc, volatile T *a, T v,
345 static T AtomicFetchSub(ThreadState *thr, uptr pc, volatile T *a, T v,
351 static T AtomicFetchAnd(ThreadState *thr, uptr pc, volatile T *a, T v,
357 static T AtomicFetchOr(ThreadState *thr, uptr pc, volatile T *a, T v,
363 static T AtomicFetchXor(ThreadState *thr, uptr pc, volatile T *a, T v,
369 static T AtomicFetchNand(ThreadState *thr, uptr pc, volatile T *a, T v
    [all...]
tsan_platform_linux.cc 348 // On Android, __thread is not supported. So we store the pointer to ThreadState
353 static ThreadState *dead_thread_state = nullptr;
355 ThreadState *cur_thread() {
356 ThreadState* thr = (ThreadState*)__get_tls()[TLS_SLOT_TSAN];
362 thr = reinterpret_cast<ThreadState*>(__get_tls()[TLS_SLOT_TSAN]);
364 thr = reinterpret_cast<ThreadState*>(MmapOrDie(sizeof(ThreadState),
365 "ThreadState"));
368 dead_thread_state = reinterpret_cast<ThreadState*>(
    [all...]
tsan_sync.h 49 void Init(ThreadState *thr, uptr pc, uptr addr, u64 uid);
74 void AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz);
80 SyncVar* GetOrCreateAndLock(ThreadState *thr, uptr pc,
98 SyncVar* GetAndLock(ThreadState *thr, uptr pc, uptr addr, bool write_lock,
tsan_interface.h 167 struct ThreadState;
347 void __tsan_go_atomic32_load(ThreadState *thr, uptr cpc, uptr pc, u8 *a);
349 void __tsan_go_atomic64_load(ThreadState *thr, uptr cpc, uptr pc, u8 *a);
351 void __tsan_go_atomic32_store(ThreadState *thr, uptr cpc, uptr pc, u8 *a);
353 void __tsan_go_atomic64_store(ThreadState *thr, uptr cpc, uptr pc, u8 *a);
355 void __tsan_go_atomic32_fetch_add(ThreadState *thr, uptr cpc, uptr pc, u8 *a);
357 void __tsan_go_atomic64_fetch_add(ThreadState *thr, uptr cpc, uptr pc, u8 *a);
359 void __tsan_go_atomic32_exchange(ThreadState *thr, uptr cpc, uptr pc, u8 *a);
361 void __tsan_go_atomic64_exchange(ThreadState *thr, uptr cpc, uptr pc, u8 *a);
363 void __tsan_go_atomic32_compare_exchange(ThreadState *thr, uptr cpc, uptr pc
    [all...]
tsan_rtl.cc 48 THREADLOCAL char cur_thread_placeholder[sizeof(ThreadState)] ALIGNED(64);
110 ThreadState::ThreadState(Context *ctx, int tid, int unique_id, u64 epoch,
308 void Initialize(ThreadState *thr) {
387 int Finalize(ThreadState *thr) {
438 void ForkBefore(ThreadState *thr, uptr pc) {
443 void ForkParentAfter(ThreadState *thr, uptr pc) {
448 void ForkChildAfter(ThreadState *thr, uptr pc) {
472 void GrowShadowStack(ThreadState *thr) {
485 u32 CurrentStackId(ThreadState *thr, uptr pc)
    [all...]
  /external/compiler-rt/lib/tsan/go/
tsan_go.cc 113 static ThreadState *main_thr;
128 Processor *ThreadState::proc() {
134 static ThreadState *AllocGoroutine() {
135 ThreadState *thr = (ThreadState*)internal_alloc(MBlockThreadContex,
136 sizeof(ThreadState));
141 void __tsan_init(ThreadState **thrp, Processor **procp,
144 ThreadState *thr = AllocGoroutine();
153 ThreadState *thr = main_thr;
162 void __tsan_read(ThreadState *thr, void *addr, void *pc)
    [all...]
  /frameworks/base/libs/hwui/debug/
nullegl.cpp 30 } ThreadState;
43 ThreadState* getThreadState() {
44 ThreadState* ptr;
46 if ((ptr = (ThreadState*) pthread_getspecific(ThreadStateKey)) == NULL) {
47 ptr = (ThreadState*) calloc(1, sizeof(ThreadState));
133 ThreadState* state = getThreadState();
  /art/runtime/openjdkjvmti/
ti_thread.cc 71 art::ScopedThreadSuspension sts(self, art::ThreadState::kNative);
121 art::ThreadState::kWaitingForDebuggerToAttach);
139 art::ThreadState::kWaitingForDebuggerToAttach);
305 art::ThreadState art_state;
325 thread_state.art_state = art::ThreadState::kStarting;
335 art::ThreadState internal_thread_state = state.art_state;
348 if (internal_thread_state == art::ThreadState::kNative) {
352 if (internal_thread_state == art::ThreadState::kRunnable ||
353 internal_thread_state == art::ThreadState::kWaitingWeakGcRootRead ||
354 internal_thread_state == art::ThreadState::kSuspended)
    [all...]
ti_phase.cc 66 art::ScopedThreadSuspension sts(art::Thread::Current(), art::ThreadState::kNative);
75 art::ScopedThreadSuspension sts(art::Thread::Current(), art::ThreadState::kNative);
82 art::ScopedThreadSuspension sts(art::Thread::Current(), art::ThreadState::kNative);
139 art::ThreadState::kWaitingForDebuggerToAttach);
146 art::ThreadState::kWaitingForDebuggerToAttach);
  /external/compiler-rt/test/tsan/Darwin/
malloc-stack-logging.cc 3 // ThreadState initialization needs to avoid calling the library functions (and
  /frameworks/native/libs/binder/
BufferedTextOutput.cpp 85 struct BufferedTextOutput::ThreadState
94 BufferedTextOutput::ThreadState* BufferedTextOutput::getThreadState()
96 ThreadState* ts = (ThreadState*) thread_store_get( &tls );
98 ts = new ThreadState;
105 delete ((ThreadState*)st);
267 ThreadState* ts = getThreadState();
  /system/libhwbinder/
BufferedTextOutput.cpp 89 struct BufferedTextOutput::ThreadState
98 BufferedTextOutput::ThreadState* BufferedTextOutput::getThreadState()
100 ThreadState* ts = (ThreadState*) thread_store_get( &tls );
102 ts = new ThreadState;
109 delete ((ThreadState*)st);
266 ThreadState* ts = getThreadState();
  /art/runtime/
scoped_thread_state_change.h 44 ALWAYS_INLINE ScopedThreadStateChange(Thread* self, ThreadState new_thread_state)
58 const ThreadState thread_state_ = kTerminated;
61 ThreadState old_thread_state_ = kTerminated;
196 ALWAYS_INLINE explicit ScopedThreadSuspension(Thread* self, ThreadState suspended_state)
204 const ThreadState suspended_state_;
  /external/compiler-rt/lib/tsan/tests/unit/
tsan_mman_test.cc 38 ThreadState *thr = cur_thread();
52 ThreadState *thr = cur_thread();
97 ThreadState *thr = cur_thread();
110 ThreadState *thr = cur_thread();
144 ThreadState *thr = cur_thread();

Completed in 497 milliseconds

1 2 3 4 5 6 7