Skip to content

Commit

Permalink
Remove volatile qualifier for GC_dirty_pages except for MPROTECT_VDB
Browse files Browse the repository at this point in the history
(refactoring)

* include/private/gc_priv.h [!GC_DISABLE_INCREMENTAL] (GC_dirty_pages):
Do not define as volatile unless MPROTECT_VDB.
  • Loading branch information
ivmai committed Jan 1, 2024
1 parent 6c034be commit 0fee898
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/private/gc_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,10 @@ struct _GC_arrays {
page_hash_table _grungy_pages; /* Pages that were dirty at last */
/* GC_read_dirty. */
# define GC_dirty_pages GC_arrays._dirty_pages
volatile page_hash_table _dirty_pages;
# ifdef MPROTECT_VDB
volatile
# endif
page_hash_table _dirty_pages;
/* Pages dirtied since last GC_read_dirty. */
# endif
# if (defined(CHECKSUMS) && (defined(GWW_VDB) || defined(SOFT_VDB))) \
Expand Down

0 comments on commit 0fee898

Please sign in to comment.