Skip to content

Limited the existence of a TID to one at a time#2012

Merged
jahdiel-alvarez merged 6 commits intomainfrom
dev/jahdiel/sync-create-thread
Jul 23, 2025
Merged

Limited the existence of a TID to one at a time#2012
jahdiel-alvarez merged 6 commits intomainfrom
dev/jahdiel/sync-create-thread

Conversation

@jahdiel-alvarez
Copy link
Contributor

ProcessTracker permitted the creation of multiple threads with same TID but different UTIDs, mainly to address data loss scenarios. Refactored the code to have better semantics to address these cases. The ClearThread method removes all preexisting UTIDs from the active thread map, acting as a barrier point from which a new thread can be created for a preexisting TID.

Also, updated the API so that GetOrCreateThread becomes the primary thread creation method, forcing a single TID and thread association at any point in time.

Bug: 425694654

ProcessTracker permitted the creation of multiple threads with same
TID but different UTIDs, mainly to address data loss scenarios.
Refactored the code to have better semantics to address these cases.
The ClearThread method removes all preexisting UTIDs from the active
thread map, acting as a barrier point from which a new thread can be
created for a preexisting TID.

Also, updated the API so that GetOrCreateThread becomes the primary
thread creation method, forcing a single TID and thread association at
any point in time.

Bug: 425694654
@jahdiel-alvarez jahdiel-alvarez requested a review from a team as a code owner July 2, 2025 21:57
@jahdiel-alvarez jahdiel-alvarez merged commit d481718 into main Jul 23, 2025
20 checks passed
@jahdiel-alvarez jahdiel-alvarez deleted the dev/jahdiel/sync-create-thread branch July 23, 2025 21:29
LalitMaganti added a commit that referenced this pull request Jul 24, 2025
LalitMaganti added a commit that referenced this pull request Jul 24, 2025
This reverts commit d481718.

breaking Google3 roll: cl/786594675
@jahdiel-alvarez jahdiel-alvarez restored the dev/jahdiel/sync-create-thread branch July 24, 2025 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants