{"action":"opened","issue":{"url":"https://api.github.com/repos/jonas-schievink/aligned_alloc.rs/issues/1","labels_url":"https://api.github.com/repos/jonas-schievink/aligned_alloc.rs/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jonas-schievink/aligned_alloc.rs/issues/1/comments","events_url":"https://api.github.com/repos/jonas-schievink/aligned_alloc.rs/issues/1/events","html_url":"https://github.com/jonas-schievink/aligned_alloc.rs/issues/1","id":113177384,"number":1,"title":"VirtualAlloc","user":{"login":"retep998","id":666308,"avatar_url":"https://avatars.githubusercontent.com/u/666308?v=3","gravatar_id":"","url":"https://api.github.com/users/retep998","html_url":"https://github.com/retep998","followers_url":"https://api.github.com/users/retep998/followers","following_url":"https://api.github.com/users/retep998/following{/other_user}","gists_url":"https://api.github.com/users/retep998/gists{/gist_id}","starred_url":"https://api.github.com/users/retep998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retep998/subscriptions","organizations_url":"https://api.github.com/users/retep998/orgs","repos_url":"https://api.github.com/users/retep998/repos","events_url":"https://api.github.com/users/retep998/events{/privacy}","received_events_url":"https://api.github.com/users/retep998/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-24T19:01:41Z","updated_at":"2015-10-24T19:01:41Z","closed_at":null,"body":"`VirtualAlloc` is not a heap. It is a page allocator. Pages are rather large, often 4KB. `VirtualAlloc` cannot be used to allocate part of a page. As such you're wasting space for small allocations by allocating entire pages, and you're also not optimizing for the case where the alignment is less than the size of a page so you can just allocate some pages and assume they have the correct alignment."}}