{"action":"created","issue":{"url":"https://api.github.com/repos/s5z/zsim/issues/93","repository_url":"https://api.github.com/repos/s5z/zsim","labels_url":"https://api.github.com/repos/s5z/zsim/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/s5z/zsim/issues/93/comments","events_url":"https://api.github.com/repos/s5z/zsim/issues/93/events","html_url":"https://github.com/s5z/zsim/issues/93","id":135041657,"number":93,"title":"in which case using gm_memalign to allocate object in zsim","user":{"login":"cyjseagull","id":4343461,"avatar_url":"https://avatars.githubusercontent.com/u/4343461?v=3","gravatar_id":"","url":"https://api.github.com/users/cyjseagull","html_url":"https://github.com/cyjseagull","followers_url":"https://api.github.com/users/cyjseagull/followers","following_url":"https://api.github.com/users/cyjseagull/following{/other_user}","gists_url":"https://api.github.com/users/cyjseagull/gists{/gist_id}","starred_url":"https://api.github.com/users/cyjseagull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyjseagull/subscriptions","organizations_url":"https://api.github.com/users/cyjseagull/orgs","repos_url":"https://api.github.com/users/cyjseagull/repos","events_url":"https://api.github.com/users/cyjseagull/events{/privacy}","received_events_url":"https://api.github.com/users/cyjseagull/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/s5z/zsim/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-20T06:51:25Z","updated_at":"2016-02-22T01:44:25Z","closed_at":"2016-02-22T01:44:25Z","body":"hi,\r\n\r\n  I am using zsim to do some simulation of TLB, however, I cann't figure out the differences between gm_memalign and new, in file \"src/init.cpp\", some objects created with \"new\", others created with \"gm_memalign\", then initialized with placement new. I will appreciate for your  response."},"comment":{"url":"https://api.github.com/repos/s5z/zsim/issues/comments/186966998","html_url":"https://github.com/s5z/zsim/issues/93#issuecomment-186966998","issue_url":"https://api.github.com/repos/s5z/zsim/issues/93","id":186966998,"user":{"login":"s5z","id":5559854,"avatar_url":"https://avatars.githubusercontent.com/u/5559854?v=3","gravatar_id":"","url":"https://api.github.com/users/s5z","html_url":"https://github.com/s5z","followers_url":"https://api.github.com/users/s5z/followers","following_url":"https://api.github.com/users/s5z/following{/other_user}","gists_url":"https://api.github.com/users/s5z/gists{/gist_id}","starred_url":"https://api.github.com/users/s5z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s5z/subscriptions","organizations_url":"https://api.github.com/users/s5z/orgs","repos_url":"https://api.github.com/users/s5z/repos","events_url":"https://api.github.com/users/s5z/events{/privacy}","received_events_url":"https://api.github.com/users/s5z/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T01:44:25Z","updated_at":"2016-02-22T01:44:25Z","body":"gm_malloc/gm_calloc/gm_memalign, etc, allocate from the global heap. If an object inherits from GlobAlloc (see galloc.h), new and delete also use the global heap. If you are adding new simulator objects, e.g., a TLB, you can use new as long as you inherit from GlobAlloc."}}