Home | History | Annotate | Download | only in tsan

Lines Matching defs:ptr

18 void *Thread(void *ptr) {
19 *(int*)ptr = 42;
26 void *ptr = mmap(0, 128 << 10, PROT_READ|PROT_WRITE,
28 fprintf(stderr, "ptr=%p\n", ptr);
29 if (ptr == MAP_FAILED) {
33 if ((uintptr_t)ptr >= (1ull << 32)) {
34 fprintf(stderr, "ptr is too high\n");
38 pthread_create(&t, 0, Thread, ptr);
40 *(int*)ptr = 42;
42 munmap(ptr, 128 << 10);