[tor-bugs] #23882 [Core Tor/Tor]: Investigate implementing a Rust allocator wrapping tor_malloc
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun Oct 15 23:06:13 UTC 2017
#23882: Investigate implementing a Rust allocator wrapping tor_malloc
------------------------------+--------------------------------
Reporter: isis | Owner: (none)
Type: enhancement | Status: new
Priority: High | Milestone: Tor: 0.3.3.x-final
Component: Core Tor/Tor | Version: Tor: 0.3.2.2-alpha
Severity: Normal | Keywords: rust, rust-pilot
Actual Points: | Parent ID:
Points: 3 | Reviewer:
Sponsor: Sponsor8-can |
------------------------------+--------------------------------
We should look into implementing the Rust `alloc::allocator::Alloc`
[https://doc.rust-lang.org/stable/alloc/allocator/trait.Alloc.html trait]
as a wrapper around `tor_malloc` as a way to have a cleaner allocator
interface in Rust moving forward (which still works with our current
legacy C code).
This is what the Rust code in Firefox has done, and the `alloc` crate is
supposed to stabilised "soon" (as in, within the next six months) because
FF is using it.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/23882>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list