tsan: fix crash during __tsan_java_move
authorDmitry Vyukov <dvyukov@google.com>
Thu, 12 Mar 2015 11:24:16 +0000 (11:24 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Thu, 12 Mar 2015 11:24:16 +0000 (11:24 +0000)
commita60829a1b68f23b03e4b037d2e212f33a74801ac
tree3b23e856a47033168bde3ab334c1986ccd111ab6
parent41c072e63bbacf04699b0d3c32486e932f74de90
tsan: fix crash during __tsan_java_move

Munmap interceptor did not reset meta shadow for the range,
and __tsan_java_move crashed because it encountered
non-zero meta shadow for the destination.

llvm-svn: 232029
compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
compiler-rt/lib/tsan/rtl/tsan_sync.cc
compiler-rt/lib/tsan/rtl/tsan_sync.h
compiler-rt/test/tsan/java_heap_init.cc [new file with mode: 0644]