mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-02 12:52:53 +01:00
(unw_set_caching_policy): Default to "global" policy if thread-local policy is
not available. (Logical change 1.63)
This commit is contained in:
parent
7bfbbb6126
commit
5fe7ac3ff5
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ unw_set_caching_policy (unw_addr_space_t as, unw_caching_policy_t policy)
|
|||
|
||||
#ifndef HAVE___THREAD
|
||||
if (policy == UNW_CACHE_PER_THREAD)
|
||||
return -UNW_EINVAL;
|
||||
policy = UNW_CACHE_GLOBAL;
|
||||
#endif
|
||||
as->caching_policy = policy;
|
||||
|
||||
|
|
Loading…
Reference in a new issue