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)
Wed, Nov 26, 12:17 AM
Unknown Object (File)
Fri, Nov 21, 6:19 AM
Unknown Object (File)
Thu, Nov 20, 3:33 AM
Unknown Object (File)
Mon, Nov 17, 4:56 AM
Unknown Object (File)
Thu, Nov 13, 2:26 AM
Unknown Object (File)
Mon, Nov 10, 7:14 PM
Unknown Object (File)
Sun, Nov 9, 5:12 AM
Unknown Object (File)
Oct 29 2025, 7:51 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