[PATCH] D40610: Flush gcda files before unlocking them

Marco Castelluccio via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 3 03:13:09 PST 2018


marco-c updated this revision to Diff 128511.

https://reviews.llvm.org/D40610

Files:
  lib/profile/GCDAProfiling.c


Index: lib/profile/GCDAProfiling.c
===================================================================
--- lib/profile/GCDAProfiling.c
+++ lib/profile/GCDAProfiling.c
@@ -459,6 +459,7 @@
       unmap_file();
     }
 
+    fflush(output_file);
     lprofUnlockFd(fd);
     fclose(output_file);
     output_file = NULL;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40610.128511.patch
Type: text/x-patch
Size: 318 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180103/8689e569/attachment.bin>


More information about the llvm-commits mailing list