Searched refs:ThreadState (Results 1 - 25 of 121) sorted by relevance

12345

/external/compiler-rt/lib/tsan/rtl/
H A 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 *th
[all...]
H A Dtsan_rtl.h319 struct ThreadState { struct in namespace:__tsan
328 // QUESTION: can we can squeeze this into ThreadState::Fast?
329 // E.g. ThreadState::Fast is a 44-bit, 32 are taken by synch_epoch and 12 are
391 explicit ThreadState(Context *ctx, int tid, int unique_id, u64 epoch,
400 INLINE ThreadState *cur_thread() {
401 return reinterpret_cast<ThreadState *>(&cur_thread_placeholder);
409 ThreadState *thr;
531 void ALWAYS_INLINE StatInc(ThreadState *thr, StatType typ, u64 n = 1) {
535 void ALWAYS_INLINE StatSet(ThreadState *thr, StatType typ, u64 n) {
548 void ForkBefore(ThreadState *th
[all...]
H A 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);
H A Dtsan_sync.h49 void Init(ThreadState *thr, uptr pc, uptr addr, u64 uid);
74 void AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz);
75 uptr FreeBlock(ThreadState *thr, uptr pc, uptr p);
76 void FreeRange(ThreadState *thr, uptr pc, uptr p, uptr sz);
79 SyncVar* GetOrCreateAndLock(ThreadState *thr, uptr pc,
85 void OnThreadIdle(ThreadState *thr);
97 SyncVar* GetAndLock(ThreadState *thr, uptr pc, uptr addr, bool write_lock,
H A Dtsan_mman.cc58 void AllocatorThreadStart(ThreadState *thr) {
63 void AllocatorThreadFinish(ThreadState *thr) {
72 static void SignalUnsafeCall(ThreadState *thr, uptr pc) {
85 void *user_alloc(ThreadState *thr, uptr pc, uptr sz, uptr align) {
97 void user_free(ThreadState *thr, uptr pc, void *p) {
104 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write) {
113 void OnUserFree(ThreadState *thr, uptr pc, uptr p, bool write) {
121 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz) {
147 ThreadState *thr = cur_thread();
155 ThreadState *th
[all...]
H A Dtsan_fd.cc50 static FdSync *allocsync(ThreadState *thr, uptr pc) {
62 static void unref(ThreadState *thr, uptr pc, FdSync *s) {
73 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) {
93 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s) {
121 void FdOnFork(ThreadState *thr, uptr pc) {
153 void FdAcquire(ThreadState *thr, uptr pc, int fd) {
164 void FdRelease(ThreadState *thr, uptr pc, int fd) {
175 void FdAccess(ThreadState *thr, uptr pc, int fd) {
183 void FdClose(ThreadState *thr, uptr pc, int fd) {
199 void FdFileCreate(ThreadState *th
[all...]
H A Dtsan_rtl_thread.cc43 ThreadState *caller_thr = static_cast<ThreadState *>(arg);
49 ThreadState *thr;
74 ThreadState *thr;
88 new(thr) ThreadState(ctx, tid, unique_id, epoch0, reuse_count,
141 thr->~ThreadState();
186 static void ThreadCheckIgnore(ThreadState *thr) {
195 static void ThreadCheckIgnore(ThreadState *thr) {}
198 void ThreadFinalize(ThreadState *thr) {
216 int ThreadCount(ThreadState *th
[all...]
H A Dtsan_stack_trace.h36 void ObtainCurrent(ThreadState *thr, uptr toppc);
H A Dtsan_sync.cc20 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s);
27 void SyncVar::Init(ThreadState *thr, uptr pc, uptr addr, u64 uid) {
58 void MetaMap::AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz) {
69 uptr MetaMap::FreeBlock(ThreadState *thr, uptr pc, uptr p) {
78 void MetaMap::FreeRange(ThreadState *thr, uptr pc, uptr p, uptr sz) {
120 SyncVar* MetaMap::GetOrCreateAndLock(ThreadState *thr, uptr pc,
129 SyncVar* MetaMap::GetAndLock(ThreadState *thr, uptr pc,
215 void MetaMap::OnThreadIdle(ThreadState *thr) {
H A Dtsan_rtl.cc47 THREADLOCAL char cur_thread_placeholder[sizeof(ThreadState)] ALIGNED(64);
95 ThreadState::ThreadState(Context *ctx, int tid, int unique_id, u64 epoch, function in class:__tsan::ThreadState
282 void Initialize(ThreadState *thr) {
341 int Finalize(ThreadState *thr) {
391 void ForkBefore(ThreadState *thr, uptr pc) {
396 void ForkParentAfter(ThreadState *thr, uptr pc) {
401 void ForkChildAfter(ThreadState *thr, uptr pc) {
425 void GrowShadowStack(ThreadState *thr) {
438 u32 CurrentStackId(ThreadState *th
[all...]
H A Dtsan_rtl_mutex.cc26 void ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r);
29 ThreadState *thr;
32 Callback(ThreadState *thr, uptr pc)
47 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s) {
53 static void ReportMutexMisuse(ThreadState *thr, uptr pc, ReportType typ,
69 void MutexCreate(ThreadState *thr, uptr pc, uptr addr,
88 void MutexDestroy(ThreadState *thr, uptr pc, uptr addr) {
147 void MutexLock(ThreadState *thr, uptr pc, uptr addr, int rec, bool try_lock) {
192 int MutexUnlock(ThreadState *thr, uptr pc, uptr addr, bool all) {
234 void MutexReadLock(ThreadState *th
[all...]
/external/chromium_org/v8/src/
H A Dv8threads.h12 class ThreadState { class in namespace:v8::internal
15 ThreadState* Next();
36 explicit ThreadState(ThreadManager* thread_manager);
37 ~ThreadState();
44 ThreadState* next_;
45 ThreadState* previous_;
88 ThreadState* FirstThreadStateInUse();
89 ThreadState* GetFreeThreadState();
95 void DeleteThreadStateList(ThreadState* anchor);
102 ThreadState* lazily_archived_thread_state
[all...]
H A Dv8threads.cc115 lazily_archived_thread_state_->LinkInto(ThreadState::FREE_LIST);
137 ThreadState* state = per_thread->thread_state();
153 state->LinkInto(ThreadState::FREE_LIST);
182 ThreadState::ThreadState(ThreadManager* thread_manager) function in class:v8::internal::ThreadState
192 ThreadState::~ThreadState() {
197 void ThreadState::AllocateSpace() {
202 void ThreadState::Unlink() {
208 void ThreadState
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/heap/glue/
H A DPendingGCRunner.h34 #include "platform/heap/ThreadState.h"
63 blink::ThreadState* state = blink::ThreadState::current();
64 state->safePoint(m_nesting ? blink::ThreadState::HeapPointersOnStack : blink::ThreadState::NoHeapPointersOnStack);
H A DMessageLoopInterruptor.h34 #include "platform/heap/ThreadState.h"
39 class MessageLoopInterruptor : public ThreadState::Interruptor {
/external/chromium_org/third_party/WebKit/Source/web/
H A DWebHeap.cpp40 ThreadState::current()->enterSafePointWithPointers(this);
45 ThreadState::current()->leaveSafePoint();
50 Heap::collectGarbage(ThreadState::HeapPointersOnStack);
H A DWebKit.cpp88 static ThreadState::Interruptor* s_messageLoopInterruptor = 0;
89 static ThreadState::Interruptor* s_isolateInterruptor = 0;
102 ThreadState::current()->addInterruptor(s_isolateInterruptor);
151 ThreadState::attachMainThread();
160 ThreadState::current()->addInterruptor(s_messageLoopInterruptor);
192 ThreadState::current()->removeInterruptor(s_isolateInterruptor);
201 ThreadState::current()->removeInterruptor(s_messageLoopInterruptor);
211 ThreadState::detachMainThread();
/external/chromium_org/third_party/WebKit/Source/platform/
H A DWebThreadSupportingGC.cpp22 if (ThreadState::current()) {
24 ThreadState::SafePointScope scope(ThreadState::HeapPointersOnStack);
34 ThreadState::attach();
35 ThreadState::current()->addInterruptor(m_messageLoopInterruptor.get());
40 ThreadState::current()->removeInterruptor(m_messageLoopInterruptor.get());
41 ThreadState::detach();
H A DTaskSynchronizer.cpp32 #include "heap/ThreadState.h"
43 if (ThreadState::current()) {
46 ThreadState::SafePointScope scope(ThreadState::HeapPointersOnStack);
/external/chromium_org/third_party/WebKit/Source/modules/webdatabase/sqlite/
H A DSQLiteFileSystem.cpp48 ThreadState::SafePointScope scope(ThreadState::HeapPointersOnStack);
/external/chromium_org/third_party/WebKit/Source/platform/heap/
H A DThreadState.cpp32 #include "platform/heap/ThreadState.h"
103 WTF::ThreadSpecific<ThreadState*>* ThreadState::s_threadSpecific = 0;
104 uint8_t ThreadState::s_mainThreadStateStorage[sizeof(ThreadState)];
105 SafePointBarrier* ThreadState::s_safePointBarrier = 0;
106 bool ThreadState::s_inGC = false;
121 typedef void (*PushAllRegistersCallback)(SafePointBarrier*, ThreadState*, intptr_t*);
122 extern "C" void pushAllRegisters(SafePointBarrier*, ThreadState*, PushAllRegistersCallback);
132 ASSERT(ThreadState
296 ThreadState::ThreadState() function in class:blink::ThreadState
[all...]
H A DThreadState.h270 class PLATFORM_EXPORT ThreadState { class in namespace:blink
271 WTF_MAKE_NONCOPYABLE(ThreadState);
290 explicit NoSweepScope(ThreadState* state) : m_state(state)
301 ThreadState* m_state;
306 typedef HashSet<ThreadState*> AttachedThreadStateSet;
325 // Associate ThreadState object with the current thread. After this
330 // Disassociate attached ThreadState from the current thread. The thread
334 static ThreadState* current() { return **s_threadSpecific; }
335 static ThreadState* mainThreadState()
337 return reinterpret_cast<ThreadState*>(s_mainThreadStateStorag
752 SafePointAwareMutexLocker(MutexBase& mutex, ThreadState::StackState stackState = ThreadState::HeapPointersOnStack) argument
[all...]
H A DHeapTest.cpp38 #include "platform/heap/ThreadState.h"
80 ThreadMarker() : m_creatingThread(reinterpret_cast<ThreadState*>(0)), m_num(0) { }
81 ThreadMarker(unsigned i) : m_creatingThread(ThreadState::current()), m_num(i) { }
82 ThreadMarker(WTF::HashTableDeletedValueType deleted) : m_creatingThread(reinterpret_cast<ThreadState*>(-1)), m_num(0) { }
85 EXPECT_TRUE((m_creatingThread == ThreadState::current())
86 || (m_creatingThread == reinterpret_cast<ThreadState*>(0))
87 || (m_creatingThread == reinterpret_cast<ThreadState*>(-1)));
89 bool isHashTableDeletedValue() const { return m_creatingThread == reinterpret_cast<ThreadState*>(-1); }
91 ThreadState* m_creatingThread;
195 explicit TestGCScope(ThreadState
[all...]
/external/compiler-rt/lib/tsan/go/
H A Dtsan_go.cc91 static ThreadState *main_thr;
94 static ThreadState *AllocGoroutine() {
95 ThreadState *thr = (ThreadState*)internal_alloc(MBlockThreadContex,
96 sizeof(ThreadState));
101 void __tsan_init(ThreadState **thrp, void (*cb)(SymbolizeContext *cb)) {
103 ThreadState *thr = AllocGoroutine();
111 ThreadState *thr = main_thr;
120 void __tsan_read(ThreadState *thr, void *addr, void *pc) {
124 void __tsan_read_pc(ThreadState *th
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/testing/
H A DRunAllTests.cpp63 blink::ThreadState::attachMainThread();
68 blink::ThreadState::detachMainThread();

Completed in 250 milliseconds

12345