Use atomic operations for updating syntax tree reference counts
Co-Authored-By: Rick Winfrey <rewinfrey@github.com>
This commit is contained in:
parent
666dfb76d2
commit
78d158899e
3 changed files with 34 additions and 4 deletions
|
|
@ -29,7 +29,7 @@ typedef Array(Tree *) TreeArray;
|
|||
struct Tree {
|
||||
Length padding;
|
||||
Length size;
|
||||
uint32_t ref_count;
|
||||
volatile uint32_t ref_count;
|
||||
uint32_t bytes_scanned;
|
||||
uint32_t error_cost;
|
||||
uint32_t node_count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue