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:
parent
22ca263109
commit
3f35f343c3
1 changed files with 2 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue