-
Notifications
You must be signed in to change notification settings - Fork 36.2k
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
MOVEONLY-ISH: allocators: split allocators and pagelocker #5810
Conversation
utACK, I like this style of cleanup. |
nits addressed. |
ut ACK |
Agree on the idea, although I'm wondering whether |
@laanwj To clarify, what do you intend Either way, I'm happy to move it if you'd prefer it there. |
Maybe we can move some utils there or maybe we will find out what else to move there later. Just thinking out loud... |
@theuni Let me try:
This is analogous to leveldb's Maybe we should write a plan how we like the tree organized so that these things are more clear. Maybe there are good arguments why |
@laanwj Ok, that sounds good. To me, 'support' implied that the functionality within would be provided by 3rd party libs. Your description makes sense and I follow now, thanks. If there were more allocators, or more planned, I'd argue that they make sense by themselves. But 2 really isn't enough to justify that. I'll move and rename to fit. |
Pagelocker is only needed for secure (usually wallet) operations, so don't make the zero-after-free allocator depend on it.
Moved to support. |
re-utACK |
utACK |
ut ACK |
Needs rebase. |
d7d187e allocators: split allocators and pagelocker (Cory Fields)
Merged via d7d187e (only conflict was a #include in the tests) |
Part of a larger effort to clean up dependencies, this is a straightforward change. Headers were fixed up as necessary, and I added the bitcoin-config.h include in pagelocker.cpp in case it was picked up from elsewhere before.
Pagelocker is only used for sensitive info, so don't require it for things that just want zero-after-free. In particular, this un-tethers streams from boost and global app-state.