mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-04 21:17:36 +08:00
bugfix: disabled some feature under MAC OS X.
This commit is contained in:
parent
08cf2700a3
commit
c5395ce6d7
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user