Home
last modified time | relevance | path

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

/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_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_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.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()
Djava_lock_move.cc20 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()
Djava_race_move.cc16 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()
Djava_alloc.cc22 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()