aboutsummaryrefslogtreecommitdiff
path: root/src/jit
diff options
context:
space:
mode:
authorMike Pall <mike>2021-06-25 12:48:42 +0200
committerMike Pall <mike>2021-06-25 12:48:42 +0200
commit95140c50010c0557af66dac944403a1a65dd312c (patch)
treedde577fa8a8c3a0454823f0f17efcf0c3d0def07 /src/jit
parent16d38a4b214e8b8a20be554be77bd20286072365 (diff)
downloadluajit-95140c50010c0557af66dac944403a1a65dd312c.tar.gz
luajit-95140c50010c0557af66dac944403a1a65dd312c.tar.bz2
luajit-95140c50010c0557af66dac944403a1a65dd312c.zip
Flush and close output file after profiling run.
Thanks to Sergey Ostanevich.
Diffstat (limited to 'src/jit')
-rw-r--r--src/jit/p.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jit/p.lua b/src/jit/p.lua
index c0ad6c0e..c9ec1d8b 100644
--- a/src/jit/p.lua
+++ b/src/jit/p.lua
@@ -238,6 +238,7 @@ local function prof_finish()
238 prof_count1 = nil 238 prof_count1 = nil
239 prof_count2 = nil 239 prof_count2 = nil
240 prof_ud = nil 240 prof_ud = nil
241 if out ~= stdout then out:close() end
241 end 242 end
242end 243end
243 244