Y
Hacker News
new
|
ask
|
show
|
jobs
by
gpderetta
3585 days ago
why are you bringing up malloc?
1 comments
the_mitsuhiko
3585 days ago
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.
link
gpderetta
3584 days ago
Yes, that's way you should, as I suggested, only call functions explicitly documented as asyc-signal-safe.
link