Home
last modified time | relevance | path

Searched refs:jheap (Results 1 – 25 of 32) sorted by relevance

12

/external/compiler-rt/test/tsan/
Djava_heap_init.cc11 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()
Djava_move_overlap.cc29 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()
Djava_race.cc13 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()
Djava_finalizer.cc14 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()
Djava_race_pc.cc23 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()
Djava_rwlock.cc18 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()
Djava_lock.cc18 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()
Djava_symbolization.cc28 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()
Djava_volatile.cc18 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()
Djava_move_overlap_race.cc21 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()
Djava_lock_rec_race.cc29 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()
Djava_lock_rec.cc31 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/
Djava_heap_init.cpp11 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()
Djava_find.cpp37 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()
Djava_move_overlap.cpp29 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()
Djava_race.cpp13 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()
Djava_finalizer.cpp14 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()
Djava_race_pc.cpp23 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()
Djava_lock.cpp18 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()
Djava_rwlock.cpp18 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()
Djava_symbolization.cpp23 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()
Djava_symbolization_legacy.cpp28 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()
Djava_volatile.cpp18 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()
Djava_move_overlap_race.cpp21 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()
Djava_lock_rec_race.cpp29 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()

12