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)
Sat, Aug 16, 3:27 AM
Unknown Object (File)
Fri, Aug 15, 12:27 AM
Unknown Object (File)
Mon, Aug 11, 5:18 PM
Unknown Object (File)
Fri, Aug 8, 9:53 PM
Unknown Object (File)
Thu, Aug 7, 5:33 AM
Unknown Object (File)
Sun, Aug 3, 7:16 AM
Unknown Object (File)
Jul 20 2025, 5:48 AM
Unknown Object (File)
Jul 18 2025, 2:01 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 61462
Build 58346: arc lint + arc unit

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