Skip to content

Commit

Permalink
engine: Remove jit.barrier() calls around apps (too expensive)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed Dec 8, 2017
1 parent 2d790f5 commit 50ced99
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/core/app.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ end
-- Run app:methodname() in protected mode (pcall). If it throws an
-- error app will be marked as dead and restarted eventually.
function with_restart (app, method)
jit.tracebarrier() -- don't mix engine and apps in traces
local status, result
if use_restart then
-- Run fn in protected mode using pcall.
Expand All @@ -96,7 +95,6 @@ function with_restart (app, method)
else
status, result = true, method(app)
end
jit.tracebarrier()
return status, result
end

Expand Down

0 comments on commit 50ced99

Please sign in to comment.