Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I believe if it went through any of Rust's planned custom allocator system (i.e. worked through `box`) it would still not work, though.

You could certainly rewrite exactly the same system from C, of course (though as I noted elsewhere, it seems less likely that OpenSSL would want to replace jemalloc than the often-slow system allocator), but I think it would be quite difficult to write a safe implementation that worked with Rust's borrow checker. The closest thing to a custom allocator that works in Rust right now is an arena with a free list, which requires you to explicitly initialize any newly allocated elements. As another commentor noted, you would really have to go quite far out of your way to reproduce the issue.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: