-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable per thread register state cache on libunwind
- Loading branch information
1 parent
7122311
commit 43a6a78
Showing
2 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/src/dwarf/Gparser.c b/src/dwarf/Gparser.c | ||
index 7a5d7e1f..8453ffb0 100644 | ||
--- a/src/dwarf/Gparser.c | ||
+++ b/src/dwarf/Gparser.c | ||
@@ -623,7 +623,7 @@ get_rs_cache (unw_addr_space_t as, intrmask_t *saved_maskp) | ||
#if defined(HAVE___CACHE_PER_THREAD) && HAVE___CACHE_PER_THREAD | ||
if (likely (caching == UNW_CACHE_PER_THREAD)) | ||
{ | ||
- static _Thread_local struct dwarf_rs_cache tls_cache __attribute__((tls_model("initial-exec"))); | ||
+ static _Thread_local struct dwarf_rs_cache tls_cache; | ||
Debug (16, "using TLS cache\n"); | ||
cache = &tls_cache; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters