{"action":"created","comment":{"url":"https://api.github.com/repos/jam2in/arcus-memcached/pulls/comments/109378202","pull_request_review_id":30475053,"id":109378202,"diff_hunk":"@@ -0,0 +1,173 @@\n+/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */\n+/*\n+ * arcus-memcached - Arcus memory cache server\n+ * Copyright 2017 JaM2in Co., Ltd.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+#include <stdlib.h>\n+#include <pthread.h>\n+#include <assert.h>\n+#include <memcached/block_allocator.h>\n+\n+static mem_block *pool_head;\n+static mem_block *pool_tail;\n+static uint32_t initial_blocks;\n+static uint32_t total_blocks;\n+static uint32_t free_blocks;\n+\n+//static pthread_mutex_t pool_mutex;\n+\n+int block_allocator_init(size_t nblocks) {\n+    mem_block *helper = NULL;","path":"engines/common/block_allocator.c","position":33,"original_position":33,"commit_id":"fb43b9ba92c2fe774dd3df8b238f62f8ac30ff62","original_commit_id":"fb43b9ba92c2fe774dd3df8b238f62f8ac30ff62","user":{"login":"jooho812","id":24535164,"avatar_url":"https://avatars2.githubusercontent.com/u/24535164?v=3","gravatar_id":"","url":"https://api.github.com/users/jooho812","html_url":"https://github.com/jooho812","followers_url":"https://api.github.com/users/jooho812/followers","following_url":"https://api.github.com/users/jooho812/following{/other_user}","gists_url":"https://api.github.com/users/jooho812/gists{/gist_id}","starred_url":"https://api.github.com/users/jooho812/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jooho812/subscriptions","organizations_url":"https://api.github.com/users/jooho812/orgs","repos_url":"https://api.github.com/users/jooho812/repos","events_url":"https://api.github.com/users/jooho812/events{/privacy}","received_events_url":"https://api.github.com/users/jooho812/received_events","type":"User","site_admin":false},"body":"네 변경하겠습니다.","created_at":"2017-04-03T09:55:24Z","updated_at":"2017-04-03T09:55:24Z","html_url":"https://github.com/jam2in/arcus-memcached/pull/2#discussion_r109378202","pull_request_url":"https://api.github.com/repos/jam2in/arcus-memcached/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/jam2in/arcus-memcached/pulls/comments/109378202"},"html":{"href":"https://github.com/jam2in/arcus-memcached/pull/2#discussion_r109378202"},"pull_request":{"href":"https://api.github.com/repos/jam2in/arcus-memcached/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/jam2in/arcus-memcached/pulls/2","id":106484514,"html_url":"https://github.com/jam2in/arcus-memcached/pull/2","diff_url":"https://github.com/jam2in/arcus-memcached/pull/2.diff","patch_url":"https://github.com/jam2in/arcus-memcached/pull/2.patch","issue_url":"https://api.github.com/repos/jam2in/arcus-memcached/issues/2","number":2,"state":"open","locked":false,"title":"Feature : Add block allocator for more efficient memory management","user":{"login":"jooho812","id":24535164,"avatar_url":"https://avatars2.githubusercontent.com/u/24535164?v=3","gravatar_id":"","url":"https://api.github.com/users/jooho812","html_url":"https://github.com/jooho812","followers_url":"https://api.github.com/users/jooho812/followers","following_url":"https://api.github.com/users/jooho812/following{/other_user}","gists_url":"https://api.github.com/users/jooho812/gists{/gist_id}","starred_url":"https://api.github.com/users/jooho812/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jooho812/subscriptions","organizations_url":"https://api.github.com/users/jooho812/orgs","repos_url":"https://api.github.com/users/jooho812/repos","events_url":"https://api.github.com/users/jooho812/events{/privacy}","received_events_url":"https://api.github.com/users/jooho812/received_events","type":"User","site_admin":false},"body":"@MinWooJin \r\n\r\n기존 wooseok/feature-eitem_block_allocator branch 의 내용 중에서 list에 해당하는 내용만 반영해 두었습니다. 소스코드 보면서 다른부분은 기존 소스를 옮기는 작업만 하였고, 수정이 필요할 것으로 생각되는 부분 한 곳만 수정하였습니다.\r\n(기존 소스 반영과 구별이 어려워 따로 적어두겠습니다. memcached.c : 9597 line 추가)\r\n","created_at":"2017-02-16T09:27:19Z","updated_at":"2017-04-03T09:55:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a22664afd19f65c9bd6f6cc4455f4d751c66dacf","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jam2in/arcus-memcached/pulls/2/commits","review_comments_url":"https://api.github.com/repos/jam2in/arcus-memcached/pulls/2/comments","review_comment_url":"https://api.github.com/repos/jam2in/arcus-memcached/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jam2in/arcus-memcached/issues/2/comments","statuses_url":"https://api.github.com/repos/jam2in/arcus-memcached/statuses/fb43b9ba92c2fe774dd3df8b238f62f8ac30ff62","head":{"label":"jooho812:jooho812/block_allocator","ref":"jooho812/block_allocator","sha":"fb43b9ba92c2fe774dd3df8b238f62f8ac30ff62","user":{"login":"jooho812","id":24535164,"avatar_url":"https://avatars2.githubusercontent.com/u/24535164?v=3","gravatar_id":"","url":"https://api.github.com/users/jooho812","html_url":"https://github.com/jooho812","followers_url":"https://api.github.com/users/jooho812/followers","following_url":"https://api.github.com/users/jooho812/following{/other_user}","gists_url":"https://api.github.com/users/jooho812/gists{/gist_id}","starred_url":"https://api.github.com/users/jooho812/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jooho812/subscriptions","organizations_url":"https://api.github.com/users/jooho812/orgs","repos_url":"https://api.github.com/users/jooho812/repos","events_url":"https://api.github.com/users/jooho812/events{/privacy}","received_events_url":"https://api.github.com/users/jooho812/received_events","type":"User","site_admin":false},"repo":{"id":82144418,"name":"arcus-memcached","full_name":"jooho812/arcus-memcached","owner":{"login":"jooho812","id":24535164,"avatar_url":"https://avatars2.githubusercontent.com/u/24535164?v=3","gravatar_id":"","url":"https://api.github.com/users/jooho812","html_url":"https://github.com/jooho812","followers_url":"https://api.github.com/users/jooho812/followers","following_url":"https://api.github.com/users/jooho812/following{/other_user}","gists_url":"https://api.github.com/users/jooho812/gists{/gist_id}","starred_url":"https://api.github.com/users/jooho812/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jooho812/subscriptions","organizations_url":"https://api.github.com/users/jooho812/orgs","repos_url":"https://api.github.com/users/jooho812/repos","events_url":"https://api.github.com/users/jooho812/events{/privacy}","received_events_url":"https://api.github.com/users/jooho812/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jooho812/arcus-memcached","description":"Arcus memory cache server","fork":true,"url":"https://api.github.com/repos/jooho812/arcus-memcached","forks_url":"https://api.github.com/repos/jooho812/arcus-memcached/forks","keys_url":"https://api.github.com/repos/jooho812/arcus-memcached/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jooho812/arcus-memcached/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jooho812/arcus-memcached/teams","hooks_url":"https://api.github.com/repos/jooho812/arcus-memcached/hooks","issue_events_url":"https://api.github.com/repos/jooho812/arcus-memcached/issues/events{/number}","events_url":"https://api.github.com/repos/jooho812/arcus-memcached/events","assignees_url":"https://api.github.com/repos/jooho812/arcus-memcached/assignees{/user}","branches_url":"https://api.github.com/repos/jooho812/arcus-memcached/branches{/branch}","tags_url":"https://api.github.com/repos/jooho812/arcus-memcached/tags","blobs_url":"https://api.github.com/repos/jooho812/arcus-memcached/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jooho812/arcus-memcached/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jooho812/arcus-memcached/git/refs{/sha}","trees_url":"https://api.github.com/repos/jooho812/arcus-memcached/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jooho812/arcus-memcached/statuses/{sha}","languages_url":"https://api.github.com/repos/jooho812/arcus-memcached/languages","stargazers_url":"https://api.github.com/repos/jooho812/arcus-memcached/stargazers","contributors_url":"https://api.github.com/repos/jooho812/arcus-memcached/contributors","subscribers_url":"https://api.github.com/repos/jooho812/arcus-memcached/subscribers","subscription_url":"https://api.github.com/repos/jooho812/arcus-memcached/subscription","commits_url":"https://api.github.com/repos/jooho812/arcus-memcached/commits{/sha}","git_commits_url":"https://api.github.com/repos/jooho812/arcus-memcached/git/commits{/sha}","comments_url":"https://api.github.com/repos/jooho812/arcus-memcached/comments{/number}","issue_comment_url":"https://api.github.com/repos/jooho812/arcus-memcached/issues/comments{/number}","contents_url":"https://api.github.com/repos/jooho812/arcus-memcached/contents/{+path}","compare_url":"https://api.github.com/repos/jooho812/arcus-memcached/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jooho812/arcus-memcached/merges","archive_url":"https://api.github.com/repos/jooho812/arcus-memcached/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jooho812/arcus-memcached/downloads","issues_url":"https://api.github.com/repos/jooho812/arcus-memcached/issues{/number}","pulls_url":"https://api.github.com/repos/jooho812/arcus-memcached/pulls{/number}","milestones_url":"https://api.github.com/repos/jooho812/arcus-memcached/milestones{/number}","notifications_url":"https://api.github.com/repos/jooho812/arcus-memcached/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jooho812/arcus-memcached/labels{/name}","releases_url":"https://api.github.com/repos/jooho812/arcus-memcached/releases{/id}","deployments_url":"https://api.github.com/repos/jooho812/arcus-memcached/deployments","created_at":"2017-02-16T05:50:16Z","updated_at":"2017-02-16T05:50:19Z","pushed_at":"2017-04-03T03:10:41Z","git_url":"git://github.com/jooho812/arcus-memcached.git","ssh_url":"git@github.com:jooho812/arcus-memcached.git","clone_url":"https://github.com/jooho812/arcus-memcached.git","svn_url":"https://github.com/jooho812/arcus-memcached","homepage":null,"size":2670,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jam2in:jooho812/block_allocator","ref":"jooho812/block_allocator","sha":"30aef570a69e8847443d83957246c9dd0c6d669c","user":{"login":"jam2in","id":8220453,"avatar_url":"https://avatars2.githubusercontent.com/u/8220453?v=3","gravatar_id":"","url":"https://api.github.com/users/jam2in","html_url":"https://github.com/jam2in","followers_url":"https://api.github.com/users/jam2in/followers","following_url":"https://api.github.com/users/jam2in/following{/other_user}","gists_url":"https://api.github.com/users/jam2in/gists{/gist_id}","starred_url":"https://api.github.com/users/jam2in/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jam2in/subscriptions","organizations_url":"https://api.github.com/users/jam2in/orgs","repos_url":"https://api.github.com/users/jam2in/repos","events_url":"https://api.github.com/users/jam2in/events{/privacy}","received_events_url":"https://api.github.com/users/jam2in/received_events","type":"Organization","site_admin":false},"repo":{"id":69005281,"name":"arcus-memcached","full_name":"jam2in/arcus-memcached","owner":{"login":"jam2in","id":8220453,"avatar_url":"https://avatars2.githubusercontent.com/u/8220453?v=3","gravatar_id":"","url":"https://api.github.com/users/jam2in","html_url":"https://github.com/jam2in","followers_url":"https://api.github.com/users/jam2in/followers","following_url":"https://api.github.com/users/jam2in/following{/other_user}","gists_url":"https://api.github.com/users/jam2in/gists{/gist_id}","starred_url":"https://api.github.com/users/jam2in/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jam2in/subscriptions","organizations_url":"https://api.github.com/users/jam2in/orgs","repos_url":"https://api.github.com/users/jam2in/repos","events_url":"https://api.github.com/users/jam2in/events{/privacy}","received_events_url":"https://api.github.com/users/jam2in/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jam2in/arcus-memcached","description":"Arcus memory cache server","fork":true,"url":"https://api.github.com/repos/jam2in/arcus-memcached","forks_url":"https://api.github.com/repos/jam2in/arcus-memcached/forks","keys_url":"https://api.github.com/repos/jam2in/arcus-memcached/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jam2in/arcus-memcached/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jam2in/arcus-memcached/teams","hooks_url":"https://api.github.com/repos/jam2in/arcus-memcached/hooks","issue_events_url":"https://api.github.com/repos/jam2in/arcus-memcached/issues/events{/number}","events_url":"https://api.github.com/repos/jam2in/arcus-memcached/events","assignees_url":"https://api.github.com/repos/jam2in/arcus-memcached/assignees{/user}","branches_url":"https://api.github.com/repos/jam2in/arcus-memcached/branches{/branch}","tags_url":"https://api.github.com/repos/jam2in/arcus-memcached/tags","blobs_url":"https://api.github.com/repos/jam2in/arcus-memcached/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jam2in/arcus-memcached/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jam2in/arcus-memcached/git/refs{/sha}","trees_url":"https://api.github.com/repos/jam2in/arcus-memcached/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jam2in/arcus-memcached/statuses/{sha}","languages_url":"https://api.github.com/repos/jam2in/arcus-memcached/languages","stargazers_url":"https://api.github.com/repos/jam2in/arcus-memcached/stargazers","contributors_url":"https://api.github.com/repos/jam2in/arcus-memcached/contributors","subscribers_url":"https://api.github.com/repos/jam2in/arcus-memcached/subscribers","subscription_url":"https://api.github.com/repos/jam2in/arcus-memcached/subscription","commits_url":"https://api.github.com/repos/jam2in/arcus-memcached/commits{/sha}","git_commits_url":"https://api.github.com/repos/jam2in/arcus-memcached/git/commits{/sha}","comments_url":"https://api.github.com/repos/jam2in/arcus-memcached/comments{/number}","issue_comment_url":"https://api.github.com/repos/jam2in/arcus-memcached/issues/comments{/number}","contents_url":"https://api.github.com/repos/jam2in/arcus-memcached/contents/{+path}","compare_url":"https://api.github.com/repos/jam2in/arcus-memcached/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jam2in/arcus-memcached/merges","archive_url":"https://api.github.com/repos/jam2in/arcus-memcached/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jam2in/arcus-memcached/downloads","issues_url":"https://api.github.com/repos/jam2in/arcus-memcached/issues{/number}","pulls_url":"https://api.github.com/repos/jam2in/arcus-memcached/pulls{/number}","milestones_url":"https://api.github.com/repos/jam2in/arcus-memcached/milestones{/number}","notifications_url":"https://api.github.com/repos/jam2in/arcus-memcached/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jam2in/arcus-memcached/labels{/name}","releases_url":"https://api.github.com/repos/jam2in/arcus-memcached/releases{/id}","deployments_url":"https://api.github.com/repos/jam2in/arcus-memcached/deployments","created_at":"2016-09-23T08:27:45Z","updated_at":"2016-09-23T08:27:53Z","pushed_at":"2017-04-03T03:10:42Z","git_url":"git://github.com/jam2in/arcus-memcached.git","ssh_url":"git@github.com:jam2in/arcus-memcached.git","clone_url":"https://github.com/jam2in/arcus-memcached.git","svn_url":"https://github.com/jam2in/arcus-memcached","homepage":null,"size":2566,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jam2in/arcus-memcached/pulls/2"},"html":{"href":"https://github.com/jam2in/arcus-memcached/pull/2"},"issue":{"href":"https://api.github.com/repos/jam2in/arcus-memcached/issues/2"},"comments":{"href":"https://api.github.com/repos/jam2in/arcus-memcached/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/jam2in/arcus-memcached/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/jam2in/arcus-memcached/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jam2in/arcus-memcached/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/jam2in/arcus-memcached/statuses/fb43b9ba92c2fe774dd3df8b238f62f8ac30ff62"}}}}
{"actor":{"display_login":"jooho812"}}