{"action":"created","issue":{"url":"https://api.github.com/repos/cloudwu/skynet/issues/336","labels_url":"https://api.github.com/repos/cloudwu/skynet/issues/336/labels{/name}","comments_url":"https://api.github.com/repos/cloudwu/skynet/issues/336/comments","events_url":"https://api.github.com/repos/cloudwu/skynet/issues/336/events","html_url":"https://github.com/cloudwu/skynet/issues/336","id":105078534,"number":336,"title":"skynet.cache.clear 可能致内存泄露","user":{"login":"flashjay","id":560298,"avatar_url":"https://avatars.githubusercontent.com/u/560298?v=3","gravatar_id":"","url":"https://api.github.com/users/flashjay","html_url":"https://github.com/flashjay","followers_url":"https://api.github.com/users/flashjay/followers","following_url":"https://api.github.com/users/flashjay/following{/other_user}","gists_url":"https://api.github.com/users/flashjay/gists{/gist_id}","starred_url":"https://api.github.com/users/flashjay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flashjay/subscriptions","organizations_url":"https://api.github.com/users/flashjay/orgs","repos_url":"https://api.github.com/users/flashjay/repos","events_url":"https://api.github.com/users/flashjay/events{/privacy}","received_events_url":"https://api.github.com/users/flashjay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-06T08:16:59Z","updated_at":"2015-09-09T08:47:14Z","closed_at":null,"body":"我在测试的时候，因为不想要某lua service代码缓存，所以在这个service里面调用了skynet.cache.clear，但是会导致内存一直增长。\r\n\r\n看不懂cache这部分实现代码。\r\n"},"comment":{"url":"https://api.github.com/repos/cloudwu/skynet/issues/comments/138831623","html_url":"https://github.com/cloudwu/skynet/issues/336#issuecomment-138831623","issue_url":"https://api.github.com/repos/cloudwu/skynet/issues/336","id":138831623,"user":{"login":"cloudwu","id":729648,"avatar_url":"https://avatars.githubusercontent.com/u/729648?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudwu","html_url":"https://github.com/cloudwu","followers_url":"https://api.github.com/users/cloudwu/followers","following_url":"https://api.github.com/users/cloudwu/following{/other_user}","gists_url":"https://api.github.com/users/cloudwu/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudwu/subscriptions","organizations_url":"https://api.github.com/users/cloudwu/orgs","repos_url":"https://api.github.com/users/cloudwu/repos","events_url":"https://api.github.com/users/cloudwu/events{/privacy}","received_events_url":"https://api.github.com/users/cloudwu/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T08:47:14Z","updated_at":"2015-09-09T08:47:14Z","body":"cache.clear 本身并不会释放之前已经加载的的 bytecode , 只是会新建一个空的 cache 。不知道你说的情况是否在此范畴之内？"}}