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
Unknown Object (File)
Tue, Mar 4, 5:07 PM
Unknown Object (File)
Tue, Mar 4, 7:59 AM
Unknown Object (File)
Mon, Mar 3, 9:57 PM
Unknown Object (File)
Mon, Mar 3, 10:17 AM
Unknown Object (File)
Sun, Mar 2, 12:14 PM
Unknown Object (File)
Sat, Feb 22, 5:31 AM
Unknown Object (File)
Wed, Feb 19, 8:58 PM
Unknown Object (File)
Feb 5 2025, 4:41 PM
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