File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -45,19 +45,17 @@ void DescribeThread(AsanThreadContext *context) {
45
45
}
46
46
context->announced = true ;
47
47
48
+ InternalScopedString str;
49
+ str.AppendF (" Thread %s" , AsanThreadIdAndName (context).c_str ());
50
+
48
51
AsanThreadContext *parent_context =
49
52
context->parent_tid == kInvalidTid
50
53
? nullptr
51
54
: GetThreadContextByTidLocked (context->parent_tid );
52
55
53
56
// `context->parent_tid` may point to reused slot. Check `unique_id` which
54
57
// is always smaller for the parent, always greater for a new user.
55
- if (context->unique_id <= parent_context->unique_id )
56
- parent_context = nullptr ;
57
-
58
- InternalScopedString str;
59
- str.AppendF (" Thread %s" , AsanThreadIdAndName (context).c_str ());
60
- if (!parent_context) {
58
+ if (!parent_context || context->unique_id <= parent_context->unique_id ) {
61
59
str.Append (" created by unknown thread\n " );
62
60
Printf (" %s" , str.data ());
63
61
return ;
You can’t perform that action at this time.
0 commit comments