tsan: add 'free' to java nonsense reports
authorDmitry Vyukov <dvyukov@google.com>
Thu, 6 Dec 2012 12:42:53 +0000 (12:42 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Thu, 6 Dec 2012 12:42:53 +0000 (12:42 +0000)
llvm-svn: 169494

compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc

index c953091..1ab79ea 100644 (file)
@@ -461,6 +461,7 @@ static bool IsJavaNonsense(const ReportDesc *rep) {
         || internal_strcmp(frame->func, "memcpy") == 0
         || internal_strcmp(frame->func, "strcmp") == 0
         || internal_strcmp(frame->func, "strncpy") == 0
+        || internal_strcmp(frame->func, "free") == 0
         || internal_strcmp(frame->func, "pthread_mutex_lock") == 0)) {
       frame = frame->next;
       if (frame == 0