1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-30 21:21:45 +02: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:
hp.com!davidm 2003-11-24 18:33:44 +00:00
parent 955c9d72de
commit 22ca263109

View file

@ -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);