Page MenuHomeFreeBSD

Linuxulator. Small optimization.
ClosedPublic

Authored by dchagin on Jan 8 2015, 9:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 21, 4:11 AM
Unknown Object (File)
Mon, Jun 16, 1:57 AM
Unknown Object (File)
Sat, Jun 14, 9:35 PM
Unknown Object (File)
Wed, Jun 11, 2:04 AM
Unknown Object (File)
Fri, Jun 6, 12:40 AM
Unknown Object (File)
Jun 4 2025, 3:11 AM
Unknown Object (File)
May 16 2025, 11:54 AM
Unknown Object (File)
May 16 2025, 9:50 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.