Skip to content

Commit 25674b7

Browse files
committed
[dtrace] Make sure when instrumenting release to be sure that arg0 is not nullptr. I had this check with swift_retain, but I forgot to use it in swift_release.
1 parent a416650 commit 25674b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/runtime_statistics.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pid$target:libswiftCore:swift_retain:entry / arg0 != 0 /
3333
@counts["swift_retain", "global"] = count();
3434
}
3535

36-
pid$target:*:swift_release:entry
36+
pid$target:*:swift_release:entry / arg0 != 0 /
3737
{
3838
this->ptr = (HeapObject *)copyin(arg0, sizeof(HeapObject));
3939
this->metadata = (ClassMetadata *)copyin(this->ptr->M, sizeof(ClassMetadata));

0 commit comments

Comments
 (0)