/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_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_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.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()
|
D | java_lock_move.cc | 20 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 21 __tsan_java_init(jheap, kHeapSize); in main() 24 __tsan_java_alloc(jheap, kBlockSize); in main() 25 varaddr = jheap; in main() 26 lockaddr = jheap + 46; in main()
|
D | java_race_move.cc | 16 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 17 __tsan_java_init(jheap, kHeapSize); in main() 20 __tsan_java_alloc(jheap, kBlockSize); in main() 21 varaddr = jheap + 16; in main()
|
D | java_alloc.cc | 22 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main() local 23 __tsan_java_init(jheap, kHeapSize); in main() 25 pthread_create(&th, 0, Thread, (void*)(jheap + kHeapSize / 4)); in main() 26 stress(jheap); in main()
|