{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/29853","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/29853/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/29853/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/29853/events","html_url":"https://github.com/rust-lang/rust/issues/29853","id":117066327,"number":29853,"title":"Use of sequential addresses for heap allocations in Stack v. Heap documentation is somewhat misleading","user":{"login":"huonw","id":1203825,"avatar_url":"https://avatars.githubusercontent.com/u/1203825?v=3","gravatar_id":"","url":"https://api.github.com/users/huonw","html_url":"https://github.com/huonw","followers_url":"https://api.github.com/users/huonw/followers","following_url":"https://api.github.com/users/huonw/following{/other_user}","gists_url":"https://api.github.com/users/huonw/gists{/gist_id}","starred_url":"https://api.github.com/users/huonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huonw/subscriptions","organizations_url":"https://api.github.com/users/huonw/orgs","repos_url":"https://api.github.com/users/huonw/repos","events_url":"https://api.github.com/users/huonw/events{/privacy}","received_events_url":"https://api.github.com/users/huonw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-docs","name":"A-docs","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-16T07:09:40Z","updated_at":"2015-11-16T07:09:40Z","closed_at":null,"body":"In a typical long-running program that is performing allocations and deallocations as it goes, successive allocations are unlikely to be exactly adjacent in memory, but https://doc.rust-lang.org/stable/book/the-stack-and-the-heap.html may imply that there's more predictability than there is.\r\n\r\nOne suggestion [from twitter](https://twitter.com/huon_w/status/666148821043277826) was to use random numbers for heap allocs."}}