Instead of using kmp_gtid_get_specific() which always makes function call (pthread_getspecific() or TlsGetValue()) it's better to use kmp_get_gtid() like it is done in __ompt_get_thread_id_internal(). The gtid value from the static TLS will be used, for example, in case of Linux where this method of getting gtid is default.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
The fix looks good, but the file should have a full diff. Please update with a diff that includes the whole file instead of just the change.