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, Jan 7, 5:05 AM
Unknown Object (File)
Mon, Jan 6, 9:55 PM
Unknown Object (File)
Mon, Jan 6, 6:16 PM
Unknown Object (File)
Mon, Jan 6, 4:33 PM
Unknown Object (File)
Mon, Jan 6, 9:46 AM
Unknown Object (File)
Fri, Jan 3, 10:42 PM
Unknown Object (File)
Fri, Jan 3, 5:52 PM
Unknown Object (File)
Wed, Dec 18, 5:07 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.Wed, Dec 11, 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.Thu, Jan 2, 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.Thu, Jan 2, 5:29 PM
This revision is now accepted and ready to land.Fri, Jan 3, 11:45 AM