Page MenuHomeFreeBSD

cpu_set_upcall / linux_clone_thread: Remove calls to cpu_thread_clean
ClosedPublic

Authored by jhb on Dec 10 2024, 7:46 PM.
Tags
None
Referenced Files
F153747747: D48023.id.diff
Thu, Apr 23, 9:57 AM
Unknown Object (File)
Mon, Apr 20, 1:39 AM
Unknown Object (File)
Sat, Apr 18, 8:24 PM
Unknown Object (File)
Thu, Apr 16, 3:35 AM
Unknown Object (File)
Tue, Apr 14, 10:25 PM
Unknown Object (File)
Sat, Apr 11, 8:05 PM
Unknown Object (File)
Wed, Apr 8, 6:46 AM
Unknown Object (File)
Tue, Apr 7, 3:26 AM
Subscribers

Details

Summary

This is intended to clean state of a thread at the end of its
lifecycle during wait(), not the beginning of its life cycle.

Sponsored by: AFRL, DARPA

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

amd64 cpu_set_upcall() also calls cpu_thread_clean(), basically for the fresh thread. I suspect this call was copied.

This revision is now accepted and ready to land.Dec 11 2024, 3:46 PM
jhb retitled this revision from linux_clone_thread: Remove call to cpu_thread_clean to cpu_set_upcall / linux_clone_thread: Remove calls to cpu_thread_clean.Jan 2 2025, 5:28 PM
In D48023#1094794, @kib wrote:

amd64 cpu_set_upcall() also calls cpu_thread_clean(), basically for the fresh thread. I suspect this call was copied.

Oof, so does i386. Not sure how I missed those. Thanks.

Remove from cpu_set_upcall

This revision now requires review to proceed.Jan 2 2025, 5:29 PM
This revision is now accepted and ready to land.Jan 3 2025, 11:45 AM