Commit c5395ce6 authored by Yuansheng Wang's avatar Yuansheng Wang
Browse files

bugfix: disabled some feature under MAC OS X.

Showing with 6 additions and 2 deletions
+6 -2
......@@ -6,7 +6,7 @@ local ngx_tpl = [=[
master_process on;
worker_processes auto;
worker_cpu_affinity auto;
# worker_cpu_affinity auto;
error_log logs/error.log error;
pid logs/nginx.pid;
......
......@@ -14,7 +14,11 @@ local _M = {version = 0.1}
function _M.init()
require("resty.core")
require("ngx.re").opt("jit_stack_size", 200 * 1024)
if require("ffi").os == "Linux" then
require("ngx.re").opt("jit_stack_size", 200 * 1024)
end
require("jit.opt").start("minstitch=2", "maxtrace=4000",
"maxrecord=8000", "sizemcode=64",
"maxmcode=4000", "maxirconst=1000")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment