Re:Parallel – A command-line CPU load balancer written in Rust
by gpderetta on Friday August 26, 2016 @05:52PM
(#12369562)
why are you bringing up malloc?
Re:Parallel – A command-line CPU load balancer written in Rust
by the_mitsuhiko on Friday August 26, 2016 @06:56PM
(#12369885)
Because you do not necessarily know which call will allocate memory in Rust and even in C it can be tricky. You literally can only go with the whitelisted functions.
Which malloc() is not. Anything that might internally allocate is out of the question. The list of functions that are safe to call in C alone is very limited and even then the question of errno arises.