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
F144433564: D48023.id148734.diff
Sun, Feb 8, 10:21 AM
F144394424: D48023.id148681.diff
Sun, Feb 8, 5:25 AM
F144317397: D48023.id147790.diff
Sat, Feb 7, 7:47 PM
Unknown Object (File)
Sat, Jan 31, 9:01 AM
Unknown Object (File)
Wed, Jan 28, 7:36 AM
Unknown Object (File)
Wed, Jan 21, 1:38 AM
Unknown Object (File)
Dec 20 2025, 2:14 PM
Unknown Object (File)
Nov 26 2025, 12:17 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