mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-24 12:13:42 +01:00
(ia64_init): To prevent a race, unw.needs_initialization must be cleared
_after_ everything is initialized. (Logical change 1.121)
This commit is contained in:
parent
955c9d72de
commit
22ca263109
1 changed files with 1 additions and 2 deletions
|
@ -88,8 +88,6 @@ ia64_init (void)
|
|||
/* another thread else beat us to it... */
|
||||
goto out;
|
||||
|
||||
unw.needs_initialization = 0;
|
||||
|
||||
mi_init ();
|
||||
|
||||
mempool_init (&unw.reg_state_pool, sizeof (struct ia64_reg_state), 0);
|
||||
|
@ -136,6 +134,7 @@ ia64_init (void)
|
|||
}
|
||||
# endif
|
||||
#endif
|
||||
unw.needs_initialization = 0; /* signal that we're initialized... */
|
||||
}
|
||||
out:
|
||||
mutex_unlock (&unw.lock);
|
||||
|
|
Loading…
Reference in a new issue