From 2148d191d9f8d95244ea955971027a6e1a79ba9a Mon Sep 17 00:00:00 2001 From: dzaima Date: Mon, 4 Apr 2022 16:10:01 +0300 Subject: [PATCH] flush between heapdump writes --- src/opt/mm_buddyTemplate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/opt/mm_buddyTemplate.c b/src/opt/mm_buddyTemplate.c index 35d000fb..339d16df 100644 --- a/src/opt/mm_buddyTemplate.c +++ b/src/opt/mm_buddyTemplate.c @@ -116,6 +116,7 @@ void BN(dumpHeap)(FILE* f) { fwrite(prefix, 1, vals[2], f); fwrite(ci.p, 1, ci.sz, f); } + fflush(f); } #undef MMAP