瀏覽代碼

Flush and close output file after profiling run.

Thanks to Sergey Ostanevich.
Mike Pall 4 年之前
父節點
當前提交
95140c5001
共有 1 個文件被更改,包括 1 次插入0 次删除
  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