mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
move skynet.memlimit from skynet.manager to skynet
This commit is contained in:
@@ -656,6 +656,11 @@ function skynet.term(service)
|
||||
return _error_dispatch(0, service)
|
||||
end
|
||||
|
||||
function skynet.memlimit(bytes)
|
||||
debug.getregistry().memlimit = bytes
|
||||
skynet.memlimit = nil -- set only once
|
||||
end
|
||||
|
||||
local function clear_pool()
|
||||
coroutine_pool = {}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user