Explorar o código

Flush and close output file after profiling run.

Thanks to Sergey Ostanevich.
Mike Pall %!s(int64=4) %!d(string=hai) anos
pai
achega
95140c5001
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/jit/p.lua

+ 1 - 0
src/jit/p.lua

@@ -238,6 +238,7 @@ local function prof_finish()
     prof_count1 = nil
     prof_count2 = nil
     prof_ud = nil
+    if out ~= stdout then out:close() end
   end
 end