diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-05-18 00:24:30 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-05-18 00:24:30 +0300 |
commit | f30c01500208d4c459986a32cd4e36bc2a483789 (patch) | |
tree | cb1beb358aca18911db948fa87396e65d5bce628 | |
parent | bb8e97c115fdcb694122a389275432b2636e9549 (diff) | |
download | bdwgc-f30c01500208d4c459986a32cd4e36bc2a483789.tar.gz |
Rename GC_dirty_async back to GC_dirty
(fix of commit bb8e97c)
* include/private/gc_priv.h [MANUAL_VDB] (GC_dirty_async_inner): Rename
to GC_dirty_inner; add comment.
* os_dep.c [MANUAL_VDB] (GC_dirty_async_inner): Likewise.
* include/private/gc_priv.h (GC_dirty_async): Rename to GC_dirty.
* mallocx.c (GC_end_stubborn_change): Rename GC_dirty_async to GC_dirty.
* mark.c [THREADS] (GC_mark_and_push_stack): Likewise.
-rw-r--r-- | include/private/gc_priv.h | 7 | ||||
-rw-r--r-- | mallocx.c | 2 | ||||
-rw-r--r-- | mark.c | 2 | ||||
-rw-r--r-- | os_dep.c | 2 |
4 files changed, 6 insertions, 7 deletions
diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index f5a555b5..8bcd690d 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -2181,11 +2181,10 @@ GC_EXTERN GC_bool GC_print_back_height; #endif /* !GC_DISABLE_INCREMENTAL */ #ifdef MANUAL_VDB - GC_INNER void GC_dirty_async_inner(const void *p); -# define GC_dirty_async(p) \ - (GC_incremental ? GC_dirty_async_inner(p) : (void)0) + GC_INNER void GC_dirty_inner(const void *p); /* does not require locking */ +# define GC_dirty(p) (GC_incremental ? GC_dirty_inner(p) : (void)0) #else -# define GC_dirty_async(p) (void)(p) +# define GC_dirty(p) (void)(p) #endif /* Same as GC_base but excepts and returns a pointer to const object. */ @@ -613,5 +613,5 @@ GC_API void GC_CALL GC_change_stubborn(const void *p GC_ATTR_UNUSED) GC_API void GC_CALL GC_end_stubborn_change(const void *p) { - GC_dirty_async(p); /* entire object */ + GC_dirty(p); /* entire object */ } @@ -1496,7 +1496,7 @@ GC_API struct GC_ms_entry * GC_CALL GC_mark_and_push(void *obj, # ifdef THREADS /* Pointer is on the stack. We may have dirtied the object */ /* it points to, but have not called GC_dirty yet. */ - GC_dirty_async(p); /* entire object */ + GC_dirty(p); /* entire object */ # endif PUSH_CONTENTS_HDR(r, GC_mark_stack_top, GC_mark_stack_limit, source, hhdr, FALSE); @@ -3040,7 +3040,7 @@ GC_API GC_push_other_roots_proc GC_CALL GC_get_push_other_roots(void) /* Mark the page containing p as dirty. Logically, this dirties the */ /* entire object. */ - GC_INNER void GC_dirty_async_inner(const void *p) + GC_INNER void GC_dirty_inner(const void *p) { word index = PHT_HASH(p); async_set_pht_entry_from_index(GC_dirty_pages, index); |