summaryrefslogtreecommitdiff
path: root/src/third_party/unwind/dist/src/ia64/Gglobal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/unwind/dist/src/ia64/Gglobal.c')
-rw-r--r--src/third_party/unwind/dist/src/ia64/Gglobal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/third_party/unwind/dist/src/ia64/Gglobal.c b/src/third_party/unwind/dist/src/ia64/Gglobal.c
index 5c6156f0e22..43dc1dcca53 100644
--- a/src/third_party/unwind/dist/src/ia64/Gglobal.c
+++ b/src/third_party/unwind/dist/src/ia64/Gglobal.c
@@ -72,7 +72,7 @@ tdep_init (void)
lock_acquire (&unw.lock, saved_mask);
{
- if (tdep_init_done)
+ if (atomic_load(&tdep_init_done))
/* another thread else beat us to it... */
goto out;
@@ -115,7 +115,7 @@ tdep_init (void)
#ifndef UNW_REMOTE_ONLY
ia64_local_addr_space_init ();
#endif
- tdep_init_done = 1; /* signal that we're initialized... */
+ atomic_store(&tdep_init_done, 1); /* signal that we're initialized... */
}
out:
lock_release (&unw.lock, saved_mask);