Backed out changeset da42fc59d4fb (bug 1553039) for causing windows build bustages.
authorCosmin Sabou <csabou@mozilla.com>
Tue, 21 May 2019 20:28:34 +0300
changeset 474796 669e1d3cec9bdb7d6385cdb8b7981492d9825410
parent 474795 57f49df057be162a48618ed969f3859a087e0b77
child 474797 3fea24c6bb635575960e056e0e35f9f9d1a81e31
push id36046
push useraiakab@mozilla.com
push dateTue, 21 May 2019 21:45:52 +0000
treeherdermozilla-central@257f2c96cef5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1553039
milestone69.0a1
backs outda42fc59d4fb71fd6680b5caf0831e752ca03490
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset da42fc59d4fb (bug 1553039) for causing windows build bustages.
js/src/gc/Statistics.cpp
--- a/js/src/gc/Statistics.cpp
+++ b/js/src/gc/Statistics.cpp
@@ -99,28 +99,18 @@ static FILE* MaybeOpenFileFromEnv(const 
 
   if (strcmp(value, "none") == 0) {
     file = nullptr;
   } else if (strcmp(value, "stdout") == 0) {
     file = stdout;
   } else if (strcmp(value, "stderr") == 0) {
     file = stderr;
   } else {
-    char path[PATH_MAX+1];
-    if (value[0] != '/') {
-      const char* dir = getenv("MOZ_UPLOAD_DIR");
-      if (dir) {
-        SprintfLiteral(path, "%s/%s", dir, value);
-        value = path;
-      }
-    }
-
     file = fopen(value, "a");
     if (!file) {
-      perror("opening log file");
       MOZ_CRASH("Failed to open log file.");
     }
   }
 
   return file;
 }
 
 struct PhaseKindInfo {