Permalink
Browse files

engine: Remove jit.barrier() calls around apps (too expensive)

  • Loading branch information...
lukego committed Dec 8, 2017
1 parent 2d790f5 commit 50ced996603241e849e0f7ddf3851feaf8122aee
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/core/app.lua
View
@@ -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.
@@ -96,7 +95,6 @@ function with_restart (app, method)
else
status, result = true, method(app)
end
jit.tracebarrier()
return status, result
end

0 comments on commit 50ced99

Please sign in to comment.