From 9480c27148bb463fc64177f2ae14e04e6fa0fd3e Mon Sep 17 00:00:00 2001 From: Johannes Weiss Date: Tue, 29 Jan 2019 11:23:42 +0000 Subject: [PATCH] malloc-aggregation.d: don't forget posix_memalign (#785) Motivation: When counting the number of allocations it's important not to forget an allocation function that Swift uses. Modifications: add posix_memalign to dev/malloc-aggregation.d Result: malloc aggregations accurate with recent Swift versions --- dev/malloc-aggregation.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/malloc-aggregation.d b/dev/malloc-aggregation.d index 331bdfd75..530b9486d 100755 --- a/dev/malloc-aggregation.d +++ b/dev/malloc-aggregation.d @@ -28,7 +28,7 @@ printf("=====\n"); } -pid$target::malloc:entry, pid$target::posix_memalign:entry, pid$target::realloc:entry, pid$target::reallocf:entry, pid$target::calloc:entry, pid$target::valloc:entry { +pid$target::malloc:entry, pid$target::posix_memalign:entry, pid$target::realloc:entry, pid$target::reallocf:entry, pid$target::calloc:entry, pid$target::valloc:entry, pid$target::posix_memalign:entry { @malloc_calls[ustack()] = count(); }