1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2025-01-11 03:23:43 +01:00

(needs_initialization): Declare it as volatile so we get proper memory

ordering when accessing it.  Also, shrink size to 1 byte and move
	it closer to other frequently-used fields.

(Logical change 1.121)
This commit is contained in:
hp.com!davidm 2003-11-24 18:33:44 +00:00
parent 22ca263109
commit 3f35f343c3

View file

@ -163,9 +163,10 @@ struct cursor
struct ia64_global_unwind_state struct ia64_global_unwind_state
{ {
int needs_initialization;
pthread_mutex_t lock; /* global data lock */ pthread_mutex_t lock; /* global data lock */
volatile char needs_initialization;
/* Table of registers that prologues can save (and order in which /* Table of registers that prologues can save (and order in which
they're saved). */ they're saved). */
const unsigned char save_order[8]; const unsigned char save_order[8];