Files
RedBear-OS/src/platform
bjorn3 6021ece539 Calculate total_args_envs_size in redox_rt::proc::fexec_impl
Calculating it earlier is a micro-optimization that doesn't seem like it
matters at all compared to all other costs of spawning a process. But at
the same time it makes things more fragile. And in fact bootstrap
actually passed the wrong value. It passed the
total_args_envs_auxvpointee_size that it computed rather than the
total_args_envs_size. While over-approximation doesn't cause UB, it
unnecessarily increases the amount of memory used after exec.

In addition pass &[&[u8]] rather than iterators for args and envs to
enable precomputing the total arg and env size. This also prevents you
from forgetting to pass a reversed iterator.
2025-12-07 18:52:47 +01:00
..
2025-10-03 21:51:10 -06:00
2025-11-28 19:49:21 -05:00
2025-10-03 21:51:10 -06:00
2025-04-19 19:26:57 +02:00
2025-11-15 07:55:37 -07:00
2025-10-03 21:51:10 -06:00
2025-10-12 20:25:37 +07:00