/external/compiler-rt/test/tsan/ |
D | java_heap_init.cc | 11 jptr jheap = (jptr)mmap(0, kHeapSize, PROT_READ | PROT_WRITE, in main() local 13 if (jheap == (jptr)MAP_FAILED) in main() 15 __atomic_store_n((int*)jheap, 1, __ATOMIC_RELEASE); in main() 16 munmap((void*)jheap, kHeapSize); in main() 17 jheap = (jptr)mmap((void*)jheap, kHeapSize, PROT_READ | PROT_WRITE, in main() 19 if (jheap == (jptr)MAP_FAILED) in main() 21 __tsan_java_init(jheap, kHeapSize); in main() 22 __tsan_java_move(jheap + 16, jheap, 16); in main()
|
D | java_move_overlap.cc | 29 void *jheap = malloc(kHeapSize); in main() local 30 jheap = (char*)jheap + 8; in main() 31 __tsan_java_init((jptr)jheap, kHeapSize); in main() 34 varaddr1_old = (jptr)jheap; in main() 35 lockaddr1_old = (jptr)jheap + 1; in main() 36 varaddr2_old = (jptr)jheap + kBlockSize - 1; in main() 37 lockaddr2_old = (jptr)jheap + kBlockSize - 16; in main()
|
D | java_race.cc | 13 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 14 __tsan_java_init(jheap, kHeapSize); in main() 16 __tsan_java_alloc(jheap, kBlockSize); in main() 18 pthread_create(&th, 0, Thread, (void*)jheap); in main() 19 *(int*)jheap = 43; in main() 22 __tsan_java_free(jheap, kBlockSize); in main()
|
D | java_finalizer.cc | 14 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 15 __tsan_java_init(jheap, kHeapSize); in main() 17 __tsan_java_alloc(jheap, kBlockSize); in main() 19 pthread_create(&th, 0, Thread, (void*)jheap); in main() 20 *(int*)jheap = 43; in main() 23 __tsan_java_free(jheap, kBlockSize); in main()
|
D | java_race_pc.cc | 23 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 24 __tsan_java_init(jheap, kHeapSize); in main() 26 __tsan_java_alloc(jheap, kBlockSize); in main() 28 pthread_create(&th, 0, Thread, (void*)jheap); in main() 29 __tsan_write1_pc((jptr)jheap, (jptr)barbaz + kPCInc); in main() 32 __tsan_java_free(jheap, kBlockSize); in main()
|
D | java_rwlock.cc | 18 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 19 __tsan_java_init(jheap, kHeapSize); in main() 21 __tsan_java_alloc(jheap, kBlockSize); in main() 22 varaddr = jheap; in main() 23 lockaddr = jheap + 8; in main() 31 __tsan_java_free(jheap, kBlockSize); in main()
|
D | java_lock.cc | 18 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 19 __tsan_java_init(jheap, kHeapSize); in main() 21 __tsan_java_alloc(jheap, kBlockSize); in main() 22 varaddr = jheap; in main() 23 lockaddr = jheap + 8; in main() 31 __tsan_java_free(jheap, kBlockSize); in main()
|
D | java_symbolization.cc | 28 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 29 __tsan_java_init(jheap, kHeapSize); in main() 31 __tsan_java_alloc(jheap, kBlockSize); in main() 33 pthread_create(&th, 0, Thread, (void*)jheap); in main() 34 __tsan_write1_pc((jptr)jheap, 1234 | kExternalPCBit); in main() 37 __tsan_java_free(jheap, kBlockSize); in main()
|
D | java_volatile.cc | 18 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 19 __tsan_java_init(jheap, kHeapSize); in main() 21 __tsan_java_alloc(jheap, kBlockSize); in main() 22 varaddr = jheap; in main() 23 lockaddr = jheap + 8; in main() 36 __tsan_java_free(jheap, kBlockSize); in main()
|
D | java_move_overlap_race.cc | 21 void *jheap = malloc(kHeapSize); in main() local 22 jheap = (char*)jheap + 8; in main() 23 __tsan_java_init((jptr)jheap, kHeapSize); in main() 26 varaddr1_old = (jptr)jheap; in main() 27 varaddr2_old = (jptr)jheap + kBlockSize - 1; in main()
|
D | java_lock_rec_race.cc | 29 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 30 __tsan_java_init(jheap, kHeapSize); in main() 32 __tsan_java_alloc(jheap, kBlockSize); in main() 33 varaddr = jheap; in main() 35 lockaddr = jheap + 8; in main() 44 __tsan_java_free(jheap, kBlockSize); in main()
|
D | java_lock_rec.cc | 31 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 32 __tsan_java_init(jheap, kHeapSize); in main() 34 __tsan_java_alloc(jheap, kBlockSize); in main() 35 varaddr = jheap; in main() 37 lockaddr = jheap + 8; in main() 50 __tsan_java_free(jheap, kBlockSize); in main()
|
/external/llvm-project/compiler-rt/test/tsan/ |
D | java_heap_init.cpp | 11 jptr jheap = (jptr)mmap(0, kHeapSize, PROT_READ | PROT_WRITE, in main() local 13 if (jheap == (jptr)MAP_FAILED) in main() 15 __atomic_store_n((int*)jheap, 1, __ATOMIC_RELEASE); in main() 16 munmap((void*)jheap, kHeapSize); in main() 17 jheap = (jptr)mmap((void*)jheap, kHeapSize, PROT_READ | PROT_WRITE, in main() 19 if (jheap == (jptr)MAP_FAILED) in main() 21 __tsan_java_init(jheap, kHeapSize); in main() 22 __tsan_java_move(jheap + 16, jheap, 16); in main()
|
D | java_find.cpp | 37 const jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 38 const jptr jheap_end = jheap + kHeapSize; in main() 39 __tsan_java_init(jheap, kHeapSize); in main() 40 const jptr addr1 = jheap; in main() 42 __tsan_java_alloc(jheap, size1); in main() 46 __tsan_java_alloc(jheap + size1, size2); in main() 50 __tsan_java_alloc(jheap + size1 + size2, size3); in main() 54 verify_find(jheap, jheap_end, addr1, size1); in main() 55 verify_find(jheap + 8, jheap_end, addr2, size2); in main() 60 verify_find(jheap + 8, jheap_end, addr3, size3); in main()
|
D | java_move_overlap.cpp | 29 void *jheap = malloc(kHeapSize); in main() local 30 jheap = (char*)jheap + 8; in main() 31 __tsan_java_init((jptr)jheap, kHeapSize); in main() 34 varaddr1_old = (jptr)jheap; in main() 35 lockaddr1_old = (jptr)jheap + 1; in main() 36 varaddr2_old = (jptr)jheap + kBlockSize - 1; in main() 37 lockaddr2_old = (jptr)jheap + kBlockSize - 16; in main()
|
D | java_race.cpp | 13 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 14 __tsan_java_init(jheap, kHeapSize); in main() 16 __tsan_java_alloc(jheap, kBlockSize); in main() 18 pthread_create(&th, 0, Thread, (void*)jheap); in main() 19 *(int*)jheap = 43; in main() 22 __tsan_java_free(jheap, kBlockSize); in main()
|
D | java_finalizer.cpp | 14 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 15 __tsan_java_init(jheap, kHeapSize); in main() 17 __tsan_java_alloc(jheap, kBlockSize); in main() 19 pthread_create(&th, 0, Thread, (void*)jheap); in main() 20 *(int*)jheap = 43; in main() 23 __tsan_java_free(jheap, kBlockSize); in main()
|
D | java_race_pc.cpp | 23 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 24 __tsan_java_init(jheap, kHeapSize); in main() 26 __tsan_java_alloc(jheap, kBlockSize); in main() 28 pthread_create(&th, 0, Thread, (void*)jheap); in main() 29 __tsan_write1_pc((jptr)jheap, (jptr)barbaz + kPCInc); in main() 32 __tsan_java_free(jheap, kBlockSize); in main()
|
D | java_lock.cpp | 18 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 19 __tsan_java_init(jheap, kHeapSize); in main() 21 __tsan_java_alloc(jheap, kBlockSize); in main() 22 varaddr = jheap; in main() 23 lockaddr = jheap + 8; in main() 31 __tsan_java_free(jheap, kBlockSize); in main()
|
D | java_rwlock.cpp | 18 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 19 __tsan_java_init(jheap, kHeapSize); in main() 21 __tsan_java_alloc(jheap, kBlockSize); in main() 22 varaddr = jheap; in main() 23 lockaddr = jheap + 8; in main() 31 __tsan_java_free(jheap, kBlockSize); in main()
|
D | java_symbolization.cpp | 23 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 24 __tsan_java_init(jheap, kHeapSize); in main() 26 __tsan_java_alloc(jheap, kBlockSize); in main() 28 pthread_create(&th, 0, Thread, (void*)jheap); in main() 29 __tsan_write1_pc((jptr)jheap, 1234 | kExternalPCBit); in main() 32 __tsan_java_free(jheap, kBlockSize); in main()
|
D | java_symbolization_legacy.cpp | 28 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 29 __tsan_java_init(jheap, kHeapSize); in main() 31 __tsan_java_alloc(jheap, kBlockSize); in main() 33 pthread_create(&th, 0, Thread, (void*)jheap); in main() 34 __tsan_write1_pc((jptr)jheap, 1234 | kExternalPCBit); in main() 37 __tsan_java_free(jheap, kBlockSize); in main()
|
D | java_volatile.cpp | 18 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 19 __tsan_java_init(jheap, kHeapSize); in main() 21 __tsan_java_alloc(jheap, kBlockSize); in main() 22 varaddr = jheap; in main() 23 lockaddr = jheap + 8; in main() 36 __tsan_java_free(jheap, kBlockSize); in main()
|
D | java_move_overlap_race.cpp | 21 void *jheap = malloc(kHeapSize); in main() local 22 jheap = (char*)jheap + 8; in main() 23 __tsan_java_init((jptr)jheap, kHeapSize); in main() 26 varaddr1_old = (jptr)jheap; in main() 27 varaddr2_old = (jptr)jheap + kBlockSize - 1; in main()
|
D | java_lock_rec_race.cpp | 29 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 30 __tsan_java_init(jheap, kHeapSize); in main() 32 __tsan_java_alloc(jheap, kBlockSize); in main() 33 varaddr = jheap; in main() 35 lockaddr = jheap + 8; in main() 44 __tsan_java_free(jheap, kBlockSize); in main()
|