зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1421692 - Apply compiler-rt patch to flush gcda files before unlocking them. r=glandium
This commit is contained in:
Родитель
a3836b3113
Коммит
a51c72b439
|
@ -19,6 +19,7 @@
|
|||
"r316048.patch",
|
||||
"r317705.patch",
|
||||
"r317709.patch",
|
||||
"hide-gcda-profiling-symbols.patch"
|
||||
"hide-gcda-profiling-symbols.patch",
|
||||
"fflush-before-unlocking.patch"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
diff --git a/compiler-rt/lib/profile/GCDAProfiling.c b/compiler-rt/lib/profile/GCDAProfiling.c
|
||||
index f0c05075a..11b1c4557 100644
|
||||
--- a/compiler-rt/lib/profile/GCDAProfiling.c
|
||||
+++ b/compiler-rt/lib/profile/GCDAProfiling.c
|
||||
@@ -468,6 +468,7 @@ void llvm_gcda_end_file() {
|
||||
unmap_file();
|
||||
}
|
||||
|
||||
+ fflush(output_file);
|
||||
flock(fd, LOCK_UN);
|
||||
fclose(output_file);
|
||||
output_file = NULL;
|
Загрузка…
Ссылка в новой задаче