Page MenuHomeFreeBSD

Linuxulator. Small optimization.
ClosedPublic

Authored by dchagin on Jan 8 2015, 9:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 13, 7:12 AM
Unknown Object (File)
Tue, Oct 7, 12:29 AM
Unknown Object (File)
Sep 8 2025, 1:27 AM
Unknown Object (File)
Aug 18 2025, 12:00 PM
Unknown Object (File)
Aug 15 2025, 1:56 AM
Unknown Object (File)
Aug 9 2025, 6:23 AM
Unknown Object (File)
Jun 21 2025, 4:11 AM
Unknown Object (File)
Jun 16 2025, 1:57 AM
Subscribers

Details

Summary

Avoid unnecessary em zeroing in non-exec path as it already zeroed by malloc with M_ZERO flag and move zeroing to the proper place in exec path.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dchagin retitled this revision from to Linuxulator. Small optimization..
dchagin updated this object.
trasz added inline comments.
sys/compat/linux/linux_emul.c
120 โ†—(On Diff #3056)

Those three were not cleared in the previous version of the code. Why do it now?

sys/compat/linux/linux_emul.c
120 โ†—(On Diff #3056)

because it was a bug, this is the 'exec' case and for newly created process I'm clean previous proc's data.

trasz added a reviewer: trasz.
This revision is now accepted and ready to land.Mar 25 2015, 1:43 PM
This revision was automatically updated to reflect the committed changes.