[PATCH] D40610: Flush gcda files before unlocking them

Marco Romano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 3 03:14:53 PST 2018


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL321702: Flush gcda files before unlocking them (authored by marco, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D40610?vs=128511&id=128512#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D40610

Files:
  compiler-rt/trunk/lib/profile/GCDAProfiling.c


Index: compiler-rt/trunk/lib/profile/GCDAProfiling.c
===================================================================
--- compiler-rt/trunk/lib/profile/GCDAProfiling.c
+++ compiler-rt/trunk/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.128512.patch
Type: text/x-patch
Size: 372 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180103/490fb105/attachment.bin>


More information about the llvm-commits mailing list