bugfix: disabled some feature under MAC OS X.

This commit is contained in:
Yuansheng Wang 2019-06-03 14:16:27 +08:00
parent 08cf2700a3
commit c5395ce6d7
2 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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")