1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-23 12:03:41 +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
{
int needs_initialization;
pthread_mutex_t lock; /* global data lock */
volatile char needs_initialization;
/* Table of registers that prologues can save (and order in which
they're saved). */
const unsigned char save_order[8];