diff options
| author | Mike Pall <mike> | 2021-06-25 12:48:42 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2021-06-25 12:48:42 +0200 |
| commit | 95140c50010c0557af66dac944403a1a65dd312c (patch) | |
| tree | dde577fa8a8c3a0454823f0f17efcf0c3d0def07 /src | |
| parent | 16d38a4b214e8b8a20be554be77bd20286072365 (diff) | |
| download | luajit-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')
| -rw-r--r-- | src/jit/p.lua | 1 |
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 |
| 242 | end | 243 | end |
| 243 | 244 | ||
