diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-20 21:20:59 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-20 21:20:59 +0000 |
| commit | f351c8a560ddc5b5df9ee5ba4ccc1cfb9029146d (patch) | |
| tree | a1af403c7ce4e7447ee7e01c045d260dba9a409b /test/tsan/debug_alloc_stack.cc | |
| parent | ab0bf875a5f328a6710f4e48258979ae1bc8da1c (diff) | |
Notes
Diffstat (limited to 'test/tsan/debug_alloc_stack.cc')
| -rw-r--r-- | test/tsan/debug_alloc_stack.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tsan/debug_alloc_stack.cc b/test/tsan/debug_alloc_stack.cc index 303c103206f8..ffe99e73a2ab 100644 --- a/test/tsan/debug_alloc_stack.cc +++ b/test/tsan/debug_alloc_stack.cc @@ -15,7 +15,7 @@ #endif extern "C" int __tsan_get_alloc_stack(void *addr, void **trace, size_t size, - int *thread_id, void *os_id); + int *thread_id, uint64_t *os_id); char *mem; void alloc_func() { mem = (char *)malloc(10); } @@ -49,7 +49,7 @@ int main() { void *trace[100]; size_t num_frames = 100; int thread_id; - void *thread_os_id; + uint64_t *thread_os_id; num_frames = __tsan_get_alloc_stack(mem, trace, num_frames, &thread_id, &thread_os_id); @@ -58,7 +58,7 @@ int main() { // CHECK: alloc stack retval ok fprintf(stderr, "thread id = %d\n", thread_id); // CHECK: thread id = 1 - fprintf(stderr, "thread os id = 0x%llx\n", (uint64_t)thread_os_id); + fprintf(stderr, "thread os id = 0x%llx\n", thread_os_id); // CHECK: thread os id = [[THREAD_OS_ID]] fprintf(stderr, "%p\n", trace[0]); // CHECK: [[ALLOC_FRAME_0:0x[0-9a-f]+]] |
