tsan: fix another crash due to processors
Another stack where we try to free sync objects, but don't have a processors is: // ResetRange // __interceptor_munmap // __deallocate_stack // start_thread // clone Again, it is a latent bug that lead to memory leaks. Also, increase amount of memory we scan in MetaMap::ResetRange. Without that the test does not fail, as we fail to free the sync objects on stack. llvm-svn: 269041
Showing
- compiler-rt/lib/tsan/rtl/tsan_interceptors.cc 1 addition, 0 deletionscompiler-rt/lib/tsan/rtl/tsan_interceptors.cc
- compiler-rt/lib/tsan/rtl/tsan_mman.cc 33 additions, 18 deletionscompiler-rt/lib/tsan/rtl/tsan_mman.cc
- compiler-rt/lib/tsan/rtl/tsan_rtl.h 10 additions, 0 deletionscompiler-rt/lib/tsan/rtl/tsan_rtl.h
- compiler-rt/lib/tsan/rtl/tsan_sync.cc 8 additions, 5 deletionscompiler-rt/lib/tsan/rtl/tsan_sync.cc
- compiler-rt/test/tsan/lots_of_threads.c 30 additions, 0 deletionscompiler-rt/test/tsan/lots_of_threads.c
Loading
Please register or sign in to comment