Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a section to the module documentation "What is a legal allocator" #46

Open
TimDiekmann opened this issue Mar 10, 2020 · 2 comments
Open
Labels

Comments

@TimDiekmann
Copy link
Member

As noted in #44 (comment), we probably want to add a section in the alloc-module documentation, which describes, what's an legal allocator.

As @Lokathor wrote up, this section

would be similar to how the core::ptr module has a section that describes the pointer validity rules, and how the core::sync::atomic and std::thread modules describe that Rust has some sort of system for threads and atomics and you should go read the C++ specs to learn about it because right now we just do "what llvm does" and that's "what C++ does".

The main rules would be things that "make sense anyway", like you can't start allocating from a location just past the end of the stack and then call a function because when you push stuff onto the stack it starts writing into your allocation pool and the program gets very sad.

@TimDiekmann
Copy link
Member Author

This section in the RFC may be a good start.

@TimDiekmann
Copy link
Member Author

Related: #65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant