]> xenbits.xensource.com Git - unikraft/libs/musl.git/commit
Initialize main thread pthread structure
authorAleksandr Iashchenko <Aleksandr.Iashchenko@opensynergy.com>
Thu, 29 Jun 2023 15:31:59 +0000 (17:31 +0200)
committerUnikraft <monkey@unikraft.io>
Thu, 10 Aug 2023 18:42:03 +0000 (18:42 +0000)
commit46ae9e33aa03afd54a9d2e2712e74b060a12ff92
tree1bc1aa3b5b385a345b13f4110250aa2330cb3eac
parent9a7cb5638b2b518b54e9f8f6434334a50893f84e
Initialize main thread pthread structure

It seems some steps were missing in pthread structure initialization.
This patch does the following:
- zeroes pthread memory (previously potentially contained garbage after
uk_mem_align allocation)
- initializes tsd
- sets detach_state to joinable

Signed-off-by: Aleksandr Iashchenko <Aleksandr.Iashchenko@opensynergy.com>
Reviewed-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Robert Kuban <robert.kuban@opensynergy.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #59
__uk_init_tls.c