From 1f2eff728b5c08283c2ebd7901a2d777c37ca2a9 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Tue, 10 Sep 2013 19:21:10 +0200 Subject: [PATCH] Fix -jp=a mode. --- src/jit/p.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jit/p.lua b/src/jit/p.lua index 1fbf389a..cd6a0616 100644 --- a/src/jit/p.lua +++ b/src/jit/p.lua @@ -196,9 +196,11 @@ local function prof_annotate(count1, samples) end local v = fl[n] if ann ~= 0 then + local v2 = fl[n+ann] if show then - if v then show = n elseif show+ann < n then show = false end - elseif fl[n+ann] then + if v2 then show = n+ann elseif v then show = n + elseif show+ann < n then show = false end + elseif v2 then show = n+ann out:write(format("@@ %d @@\n", n)) end