Home
last modified time | relevance | path

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

12

/external/compiler-rt/test/tsan/
Djava_alloc.cc4 int const kHeapSize = 1024 * 1024; variable
8 for (jptr i = 0; i < kHeapSize / 4 / sz; i++) { in stress()
11 __tsan_java_move(addr, addr + kHeapSize / 2, kHeapSize / 4); in stress()
12 __tsan_java_free(addr + kHeapSize / 2, kHeapSize / 4); in stress()
22 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
23 __tsan_java_init(jheap, kHeapSize); in main()
25 pthread_create(&th, 0, Thread, (void*)(jheap + kHeapSize / 4)); in main()
Djava_heap_init.cc10 int const kHeapSize = 1024 * 1024; in main() local
11 jptr jheap = (jptr)mmap(0, kHeapSize, PROT_READ | PROT_WRITE, in main()
16 munmap((void*)jheap, kHeapSize); in main()
17 jheap = (jptr)mmap((void*)jheap, kHeapSize, PROT_READ | PROT_WRITE, in main()
21 __tsan_java_init(jheap, kHeapSize); in main()
Djava_race.cc12 int const kHeapSize = 1024 * 1024; in main() local
13 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
14 __tsan_java_init(jheap, kHeapSize); in main()
Djava_finalizer.cc13 int const kHeapSize = 1024 * 1024; in main() local
14 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
15 __tsan_java_init(jheap, kHeapSize); in main()
Djava_race_pc.cc22 int const kHeapSize = 1024 * 1024; in main() local
23 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
24 __tsan_java_init(jheap, kHeapSize); in main()
Djava_race_move.cc15 int const kHeapSize = 1024 * 1024; in main() local
16 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
17 __tsan_java_init(jheap, kHeapSize); in main()
Djava_rwlock.cc17 int const kHeapSize = 1024 * 1024; in main() local
18 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
19 __tsan_java_init(jheap, kHeapSize); in main()
Djava_lock.cc17 int const kHeapSize = 1024 * 1024; in main() local
18 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
19 __tsan_java_init(jheap, kHeapSize); in main()
Djava_symbolization.cc27 int const kHeapSize = 1024 * 1024; in main() local
28 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
29 __tsan_java_init(jheap, kHeapSize); in main()
Djava_volatile.cc17 int const kHeapSize = 1024 * 1024; in main() local
18 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
19 __tsan_java_init(jheap, kHeapSize); in main()
Djava_lock_move.cc19 int const kHeapSize = 1024 * 1024; in main() local
20 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
21 __tsan_java_init(jheap, kHeapSize); in main()
Djava_move_overlap_race.cc20 int const kHeapSize = 1024 * 1024; in main() local
21 void *jheap = malloc(kHeapSize); in main()
23 __tsan_java_init((jptr)jheap, kHeapSize); in main()
/external/llvm-project/compiler-rt/test/tsan/
Djava_alloc.cpp4 int const kHeapSize = 1024 * 1024; variable
8 for (jptr i = 0; i < kHeapSize / 4 / sz; i++) { in stress()
11 __tsan_java_move(addr, addr + kHeapSize / 2, kHeapSize / 4); in stress()
12 __tsan_java_free(addr + kHeapSize / 2, kHeapSize / 4); in stress()
22 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
23 __tsan_java_init(jheap, kHeapSize); in main()
25 pthread_create(&th, 0, Thread, (void*)(jheap + kHeapSize / 4)); in main()
Djava_heap_init.cpp10 int const kHeapSize = 1024 * 1024; in main() local
11 jptr jheap = (jptr)mmap(0, kHeapSize, PROT_READ | PROT_WRITE, in main()
16 munmap((void*)jheap, kHeapSize); in main()
17 jheap = (jptr)mmap((void*)jheap, kHeapSize, PROT_READ | PROT_WRITE, in main()
21 __tsan_java_init(jheap, kHeapSize); in main()
Djava_find.cpp4 int const kHeapSize = 1024 * 1024; variable
37 const jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
38 const jptr jheap_end = jheap + kHeapSize; in main()
39 __tsan_java_init(jheap, kHeapSize); in main()
Djava_race.cpp12 int const kHeapSize = 1024 * 1024; in main() local
13 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
14 __tsan_java_init(jheap, kHeapSize); in main()
Djava_finalizer.cpp13 int const kHeapSize = 1024 * 1024; in main() local
14 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
15 __tsan_java_init(jheap, kHeapSize); in main()
Djava_race_move.cpp15 int const kHeapSize = 1024 * 1024; in main() local
16 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
17 __tsan_java_init(jheap, kHeapSize); in main()
Djava_race_pc.cpp22 int const kHeapSize = 1024 * 1024; in main() local
23 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
24 __tsan_java_init(jheap, kHeapSize); in main()
Djava_lock.cpp17 int const kHeapSize = 1024 * 1024; in main() local
18 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
19 __tsan_java_init(jheap, kHeapSize); in main()
Djava_rwlock.cpp17 int const kHeapSize = 1024 * 1024; in main() local
18 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
19 __tsan_java_init(jheap, kHeapSize); in main()
Djava_symbolization.cpp22 int const kHeapSize = 1024 * 1024; in main() local
23 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
24 __tsan_java_init(jheap, kHeapSize); in main()
Djava_symbolization_legacy.cpp27 int const kHeapSize = 1024 * 1024; in main() local
28 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
29 __tsan_java_init(jheap, kHeapSize); in main()
Djava_volatile.cpp17 int const kHeapSize = 1024 * 1024; in main() local
18 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
19 __tsan_java_init(jheap, kHeapSize); in main()
Djava_lock_move.cpp19 int const kHeapSize = 1024 * 1024; in main() local
20 jptr jheap = (jptr)malloc(kHeapSize + 8) + 8; in main()
21 __tsan_java_init(jheap, kHeapSize); in main()

12