Home
last modified time | relevance | path

Searched refs:ThreadState (Results 1 – 25 of 86) sorted by relevance

1234

/external/chromium_org/third_party/WebKit/Source/heap/
DThreadState.cpp38 WTF::ThreadSpecific<ThreadState*>* ThreadState::s_threadSpecific = 0;
39 uint8_t ThreadState::s_mainThreadStateStorage[sizeof(ThreadState)];
47 void ThreadState::init(intptr_t* startOfStack) in init()
49 s_threadSpecific = new WTF::ThreadSpecific<ThreadState*>(); in init()
50 new(s_mainThreadStateStorage) ThreadState(startOfStack); in init()
54 void ThreadState::shutdown() in shutdown()
56 mainThreadState()->~ThreadState(); in shutdown()
59 void ThreadState::attach(intptr_t* startOfStack) in attach()
62 ThreadState* state = new ThreadState(startOfStack); in attach()
66 void ThreadState::detach() in detach()
[all …]
DThreadState.h40 class ThreadState {
56 static ThreadState* current() { return **s_threadSpecific; } in current()
57 static ThreadState* mainThreadState() in mainThreadState()
59 return reinterpret_cast<ThreadState*>(s_mainThreadStateStorage); in mainThreadState()
70 explicit ThreadState(intptr_t* startOfStack);
71 ~ThreadState();
73 typedef HashSet<ThreadState*> AttachedThreadStateSet;
76 static WTF::ThreadSpecific<ThreadState*>* s_threadSpecific;
/external/compiler-rt/lib/tsan/rtl/
Dtsan_fd.h42 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);
46 void FdFileCreate(ThreadState *thr, uptr pc, int fd);
47 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd);
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 …]
Dtsan_rtl.h396 struct ThreadState { struct
459 explicit ThreadState(Context *ctx, int tid, int unique_id, u64 epoch, argument
468 INLINE ThreadState *cur_thread() { in cur_thread()
469 return reinterpret_cast<ThreadState *>(&cur_thread_placeholder); in cur_thread()
477 ThreadState *thr;
552 ThreadState*thr_;
587 void ALWAYS_INLINE StatInc(ThreadState *thr, StatType typ, u64 n = 1) {
591 void ALWAYS_INLINE StatSet(ThreadState *thr, StatType typ, u64 n) { in StatSet()
603 void ReportRace(ThreadState *thr);
629 u32 CurrentStackId(ThreadState *thr, uptr pc);
[all …]
Dtsan_mman.h23 void AllocatorThreadStart(ThreadState *thr);
24 void AllocatorThreadFinish(ThreadState *thr);
28 void *user_alloc(ThreadState *thr, uptr pc, uptr sz,
31 void user_free(ThreadState *thr, uptr pc, void *p);
32 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz);
33 void *user_alloc_aligned(ThreadState *thr, uptr pc, uptr sz, uptr align);
34 uptr user_alloc_usable_size(ThreadState *thr, uptr pc, void *p);
37 MBlock *user_mblock(ThreadState *thr, void *p);
Dtsan_fd.cc57 static void unref(ThreadState *thr, uptr pc, FdSync *s) { in unref()
71 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) { in fddesc()
90 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s) { in init()
118 void FdOnFork(ThreadState *thr, uptr pc) { in FdOnFork()
150 void FdAcquire(ThreadState *thr, uptr pc, int fd) { in FdAcquire()
159 void FdRelease(ThreadState *thr, uptr pc, int fd) { in FdRelease()
168 void FdAccess(ThreadState *thr, uptr pc, int fd) { in FdAccess()
174 void FdClose(ThreadState *thr, uptr pc, int fd) { in FdClose()
188 void FdFileCreate(ThreadState *thr, uptr pc, int fd) { in FdFileCreate()
193 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd) { in FdDup()
[all …]
Dtsan_mman.cc76 void AllocatorThreadStart(ThreadState *thr) { in AllocatorThreadStart()
81 void AllocatorThreadFinish(ThreadState *thr) { in AllocatorThreadFinish()
90 static void SignalUnsafeCall(ThreadState *thr, uptr pc) { in SignalUnsafeCall()
104 void *user_alloc(ThreadState *thr, uptr pc, uptr sz, uptr align) { in user_alloc()
120 void user_free(ThreadState *thr, uptr pc, void *p) { in user_free()
143 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz) { in user_realloc()
163 uptr user_alloc_usable_size(ThreadState *thr, uptr pc, void *p) { in user_alloc_usable_size()
171 MBlock *user_mblock(ThreadState *thr, void *p) { in user_mblock()
182 ThreadState *thr = cur_thread(); in invoke_malloc_hook()
190 ThreadState *thr = cur_thread(); in invoke_free_hook()
[all …]
Dtsan_rtl_thread.cc43 ThreadState *caller_thr = static_cast<ThreadState *>(arg); in OnJoined()
50 ThreadState *thr;
82 ThreadState *thr;
96 new(thr) ThreadState(CTX(), tid, unique_id, in OnStarted()
141 thr->~ThreadState(); in OnFinished()
168 static void ThreadCheckIgnore(ThreadState *thr) { in ThreadCheckIgnore()
175 void ThreadFinalize(ThreadState *thr) { in ThreadFinalize()
194 int ThreadCount(ThreadState *thr) { in ThreadCount()
202 int ThreadCreate(ThreadState *thr, uptr pc, uptr uid, bool detached) { in ThreadCreate()
213 void ThreadStart(ThreadState *thr, int tid, uptr os_id) { in ThreadStart()
[all …]
Dtsan_rtl.cc37 THREADLOCAL char cur_thread_placeholder[sizeof(ThreadState)] ALIGNED(64);
81 ThreadState::ThreadState(Context *ctx, int tid, int unique_id, u64 epoch, in ThreadState() function in __tsan::ThreadState
185 void Initialize(ThreadState *thr) { in Initialize()
248 int Finalize(ThreadState *thr) { in Finalize()
299 u32 CurrentStackId(ThreadState *thr, uptr pc) { in CurrentStackId()
314 void TraceSwitch(ThreadState *thr) { in TraceSwitch()
331 uptr TraceTopPC(ThreadState *thr) { in TraceTopPC()
372 static inline void HandleRace(ThreadState *thr, u64 *shadow_mem, in HandleRace()
384 static inline bool OldIsInSameSynchEpoch(Shadow old, ThreadState *thr) { in OldIsInSameSynchEpoch()
388 static inline bool HappensBefore(Shadow old, ThreadState *thr) { in HappensBefore()
[all …]
Dtsan_rtl_mutex.cc23 void MutexCreate(ThreadState *thr, uptr pc, uptr addr, in MutexCreate()
42 void MutexDestroy(ThreadState *thr, uptr pc, uptr addr) { in MutexDestroy()
82 void MutexLock(ThreadState *thr, uptr pc, uptr addr, int rec) { in MutexLock()
116 int MutexUnlock(ThreadState *thr, uptr pc, uptr addr, bool all) { in MutexUnlock()
156 void MutexReadLock(ThreadState *thr, uptr pc, uptr addr) { in MutexReadLock()
177 void MutexReadUnlock(ThreadState *thr, uptr pc, uptr addr) { in MutexReadUnlock()
199 void MutexReadOrWriteUnlock(ThreadState *thr, uptr pc, uptr addr) { in MutexReadOrWriteUnlock()
245 void Acquire(ThreadState *thr, uptr pc, uptr addr) { in Acquire()
256 ThreadState *thr = reinterpret_cast<ThreadState*>(arg); in UpdateClockCallback()
264 void AcquireGlobal(ThreadState *thr, uptr pc) { in AcquireGlobal()
[all …]
Dtsan_sync.h36 void ObtainCurrent(ThreadState *thr, uptr toppc);
92 SyncVar* GetOrCreateAndLock(ThreadState *thr, uptr pc,
97 SyncVar* GetAndRemove(ThreadState *thr, uptr pc, uptr addr);
99 SyncVar* Create(ThreadState *thr, uptr pc, uptr addr);
118 SyncVar* GetAndLock(ThreadState *thr, uptr pc,
Dtsan_interface_atomic.cc35 ThreadState *const thr = cur_thread(); \
57 ScopedAtomic(ThreadState *thr, uptr pc, const volatile void *a, in ScopedAtomic()
72 ThreadState *thr_;
75 static void AtomicStatInc(ThreadState *thr, uptr size, morder mo, StatType t) { in AtomicStatInc()
247 static T AtomicLoad(ThreadState *thr, uptr pc, const volatile T *a, in AtomicLoad()
267 static void AtomicStore(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicStore()
291 static T AtomicRMW(ThreadState *thr, uptr pc, volatile T *a, T v, morder mo) { in AtomicRMW()
311 static T AtomicExchange(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicExchange()
317 static T AtomicFetchAdd(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchAdd()
323 static T AtomicFetchSub(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchSub()
[all …]
/external/compiler-rt/lib/tsan/go/
Dtsan_go.cc79 static ThreadState *main_thr;
81 static ThreadState *AllocGoroutine() { in AllocGoroutine()
82 ThreadState *thr = (ThreadState*)internal_alloc(MBlockThreadContex, in AllocGoroutine()
83 sizeof(ThreadState)); in AllocGoroutine()
88 void __tsan_init(ThreadState **thrp) { in __tsan_init()
89 ThreadState *thr = AllocGoroutine(); in __tsan_init()
98 ThreadState *thr = main_thr; in __tsan_fini()
109 void __tsan_read(ThreadState *thr, void *addr, void *pc) { in __tsan_read()
113 void __tsan_write(ThreadState *thr, void *addr, void *pc) { in __tsan_write()
117 void __tsan_read_range(ThreadState *thr, void *addr, uptr size, uptr step, in __tsan_read_range()
[all …]
/external/chromium_org/v8/src/
Dv8threads.h35 class ThreadState {
38 ThreadState* Next();
59 explicit ThreadState(ThreadManager* thread_manager);
60 ~ThreadState();
67 ThreadState* next_;
68 ThreadState* previous_;
111 ThreadState* FirstThreadStateInUse();
112 ThreadState* GetFreeThreadState();
118 void DeleteThreadStateList(ThreadState* anchor);
125 ThreadState* lazily_archived_thread_state_;
[all …]
Dv8threads.cc151 lazily_archived_thread_state_->LinkInto(ThreadState::FREE_LIST); in RestoreThread()
173 ThreadState* state = per_thread->thread_state(); in RestoreThread()
191 state->LinkInto(ThreadState::FREE_LIST); in RestoreThread()
222 ThreadState::ThreadState(ThreadManager* thread_manager) in ThreadState() function in v8::internal::ThreadState
232 ThreadState::~ThreadState() { in ~ThreadState()
237 void ThreadState::AllocateSpace() { in AllocateSpace()
242 void ThreadState::Unlink() { in Unlink()
248 void ThreadState::LinkInto(List list) { in LinkInto()
249 ThreadState* flying_anchor = in LinkInto()
259 ThreadState* ThreadManager::GetFreeThreadState() { in GetFreeThreadState()
[all …]
/external/v8/src/
Dv8threads.h35 class ThreadState {
38 ThreadState* Next();
59 explicit ThreadState(ThreadManager* thread_manager);
66 ThreadState* next_;
67 ThreadState* previous_;
110 ThreadState* FirstThreadStateInUse();
111 ThreadState* GetFreeThreadState();
122 ThreadState* lazily_archived_thread_state_;
128 ThreadState* free_anchor_;
130 ThreadState* in_use_anchor_;
[all …]
Dv8threads.cc167 lazily_archived_thread_state_->LinkInto(ThreadState::FREE_LIST); in RestoreThread()
189 ThreadState* state = per_thread->thread_state(); in RestoreThread()
207 state->LinkInto(ThreadState::FREE_LIST); in RestoreThread()
238 ThreadState::ThreadState(ThreadManager* thread_manager) in ThreadState() function in v8::internal::ThreadState
247 void ThreadState::AllocateSpace() { in AllocateSpace()
252 void ThreadState::Unlink() { in Unlink()
258 void ThreadState::LinkInto(List list) { in LinkInto()
259 ThreadState* flying_anchor = in LinkInto()
269 ThreadState* ThreadManager::GetFreeThreadState() { in GetFreeThreadState()
270 ThreadState* gotten = free_anchor_->next_; in GetFreeThreadState()
[all …]
/external/chromium_org/third_party/leveldatabase/src/db/
Ddb_bench.cc288 struct ThreadState { struct
294 ThreadState(int index) in ThreadState() function
441 void (Benchmark::*method)(ThreadState*) = NULL; in Run()
535 ThreadState* thread;
536 void (Benchmark::*method)(ThreadState*);
542 ThreadState* thread = arg->thread; in ThreadBody()
568 void (Benchmark::*method)(ThreadState*)) { in RunBenchmark() argument
580 arg[i].thread = new ThreadState(i); in RunBenchmark()
608 void Crc32c(ThreadState* thread) { in Crc32c()
627 void AcquireLoad(ThreadState* thread) { in AcquireLoad()
[all …]
/external/valgrind/main/coregrind/m_gdbserver/
Dtarget.c67 ThreadState *ts; in valgrind_update_threads()
210 ThreadState *tst; in valgrind_thread_alive()
213 tst = (ThreadState *) inferior_target_data (ti); in valgrind_thread_alive()
249 ThreadState *tst; in valgrind_wait()
292 ThreadState *tst = (ThreadState *) inferior_target_data (current_inferior); in fetch_register()
338 ThreadState *tst = (ThreadState *) inferior_target_data (current_inferior); in usr_store_inferior_registers()
450 ThreadState *tst = in valgrind_write_memory()
451 (ThreadState *) inferior_target_data (current_inferior); in valgrind_write_memory()
512 VexGuestArchState* get_arch (int set, ThreadState* tst) in get_arch()
573 ThreadState *tst = (ThreadState *) inferior_target_data (current_inferior); in set_desired_inferior()
/external/valgrind/main/coregrind/m_sigframe/
Dsigframe-x86-linux.c355 ThreadState *tst = VG_(get_ThreadState)(tid); in synth_ucontext()
400 static Bool extend ( ThreadState *tst, Addr addr, SizeT size ) in extend()
443 ThreadState *tst, in build_vg_sigframe()
460 static Addr build_sigframe(ThreadState *tst, in build_sigframe()
518 static Addr build_rt_sigframe(ThreadState *tst, in build_rt_sigframe()
592 ThreadState* tst = VG_(get_ThreadState)(tid); in VG_()
625 Bool restore_vg_sigframe ( ThreadState *tst, in restore_vg_sigframe()
650 void restore_sigcontext( ThreadState *tst, in restore_sigcontext()
676 SizeT restore_sigframe ( ThreadState *tst, in restore_sigframe()
686 SizeT restore_rt_sigframe ( ThreadState *tst, in restore_rt_sigframe()
[all …]
Dsigframe-amd64-linux.c331 ThreadState *tst = VG_(get_ThreadState)(tid); in synth_ucontext()
379 static Bool extend ( ThreadState *tst, Addr addr, SizeT size ) in extend()
422 ThreadState *tst, in build_vg_sigframe()
440 static Addr build_rt_sigframe(ThreadState *tst, in build_rt_sigframe()
508 ThreadState* tst = VG_(get_ThreadState)(tid); in VG_()
541 Bool restore_vg_sigframe ( ThreadState *tst, in restore_vg_sigframe()
566 void restore_sigcontext( ThreadState *tst, in restore_sigcontext()
598 SizeT restore_rt_sigframe ( ThreadState *tst, in restore_rt_sigframe()
611 ThreadState* tst; in VG_()
Dsigframe-s390x-linux.c145 static void save_sigregs(ThreadState *tst, _vki_sigregs *sigregs) in save_sigregs()
204 static void restore_sigregs(ThreadState *tst, _vki_sigregs *sigregs) in restore_sigregs()
265 static Bool extend ( ThreadState *tst, Addr addr, SizeT size ) in extend()
308 ThreadState *tst, in build_vg_sigframe()
325 static Addr build_sigframe(ThreadState *tst, in build_sigframe()
384 static Addr build_rt_sigframe(ThreadState *tst, in build_rt_sigframe()
458 ThreadState* tst = VG_(get_ThreadState)(tid); in VG_()
489 Bool restore_vg_sigframe ( ThreadState *tst, in restore_vg_sigframe()
514 SizeT restore_sigframe ( ThreadState *tst, in restore_sigframe()
524 SizeT restore_rt_sigframe ( ThreadState *tst, in restore_rt_sigframe()
[all …]
/external/valgrind/main/coregrind/
Dm_threadstate.c47 ThreadState VG_(threads)[VG_N_THREADS] __attribute__((aligned(16)));
81 ThreadState *VG_(get_ThreadState)(ThreadId tid) in VG_()
105 ThreadState *tst = VG_(get_ThreadState)(tid); in VG_()
/external/valgrind/main/coregrind/m_syswrap/
Dsyswrap-x86-darwin.c175 ThreadState *build_thread(const thread_state_t state, in build_thread()
180 ThreadState *tst = VG_(get_ThreadState)(tid); in build_thread()
204 ThreadState *tst) in hijack_thread_state()
281 ThreadState *tst = (ThreadState *)func_arg; in pthread_hijack()
384 ThreadState *tst; in wqthread_hijack()
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_mman_test.cc49 ThreadState *thr = cur_thread(); in TEST()
76 ThreadState *thr = cur_thread(); in TEST()
122 ThreadState *thr = cur_thread(); in TEST()
135 ThreadState *thr = cur_thread(); in TEST()

1234