This is an archive of the discontinued LLVM Phabricator instance.

Fix incorrect initial value of __kmp_affinity_type.
ClosedPublic

Authored by hbae on Mar 15 2017, 4:09 PM.

Details

Summary

Affinity initialization code expects __kmp_affinity_type has the value affinity_default by default, but the cleanup code does not properly set the value back to affinity_default.
This may introduce some issues when multiple roots are trying to initialize/uninitialize the runtime successively.

Diff Detail

Repository
rL LLVM

Event Timeline

hbae created this revision.Mar 15 2017, 4:09 PM
This revision is now accepted and ready to land.Mar 20 2017, 3:15 PM
This revision was automatically updated to reflect the committed changes.