Collapse multiple page_was_dirty, remove_protection, read_dirty definitions
authorIvan Maidanski <ivmai@mail.ru>
Tue, 22 May 2018 06:03:07 +0000 (09:03 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 22 May 2018 07:40:04 +0000 (10:40 +0300)
commit63e4b78652bc52d383f8b25e8abcc22e1574a25a
treeaab6ea83dc67cd5551654ffed39c3b240b9a5c18
parente5fb574cf6c12593666cefeb5c005b1a1752af74
Collapse multiple page_was_dirty, remove_protection, read_dirty definitions
(code refactoring)

* os_dep.c [NEED_PROC_MAPS] (READ): Move macro definition inside the
function where it is used; undefine the macro at the function end.
* os_dep.c [PROC_VDB] (READ): Likewise.
* os_dep.c [!GWW_VDB] (GC_GWW_AVAILABLE): Define to FALSE.
* os_dep.c [!GC_DISABLE_INCREMENTAL] (GC_page_was_dirty,
GC_page_was_ever_dirty, GC_remove_protection, GC_read_dirty): Collapse
multiple definitions into a single one; reformat code; replace
GC_ATTR_UNUSED with (void)arg.
* os_dep.c [GWW_VDB && MPROTECT_VDB] (GC_gww_page_was_ever_dirty):
Remove.
* os_dep.c [GWW_VDB && !MPROTECT_VDB] (GC_read_dirty): Rename to
GC_gww_read_dirty; define as GC_INLINE.
* os_dep.c [PROC_VDB] (GC_read_dirty): Rename to GC_proc_read_dirty;
define as GC_INLINE.
os_dep.c