This is called by Bionic on dlclose to delete the emutls pthread key.
The return value of pthread_key_delete is unchecked and behaviour of multiple calls to the method is dependent on the implementation of pthread_key_delete.
Differential D52251
[builtins] Add __emutls_unregister_key function kongyi on Sep 18 2018, 3:22 PM. Authored by
Details This is called by Bionic on dlclose to delete the emutls pthread key. The return value of pthread_key_delete is unchecked and behaviour of multiple calls to the method is dependent on the implementation of pthread_key_delete.
Diff Detail
Event TimelineComment Actions +enh and danalbert - in case they have any other concerns about this (Ryan's already on the review). From my perspective, everything here makes sense for resolving this issue.
|
I think this function should be useful to other non-bionic platform too.
Did you get any link error with compiler-rt tests?