summaryrefslogtreecommitdiff
path: root/backgraph.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-10-20 15:34:26 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:51 +0200
commitcbf2fbfe06d7960b9379cd44eb5ad2016552925b (patch)
treef37b9db0f26b4eea021a70753ed1c4467efaae75 /backgraph.c
parent2b8606bf1eab075aa8e8dc99e1690941473f15ed (diff)
2009-10-20 Ivan Maidanski <ivmai@mail.ru>
* include/gc.h (REVEAL_POINTER): Remove redundant parentheses. * include/gc.h (GC_HIDE_POINTER, GC_REVEAL_POINTER): New macros (only if GC_I_HIDE_POINTERS). * backgraph.c (GET_OH_BG_PTR): Prefix REVEAL_POINTER() with "GC_". * dbg_mlc.c (GC_get_back_ptr_info): Ditto. * finalize.c (GC_grow_table, GC_dump_finalization, GC_finalize, GC_enqueue_all_finalizers): Ditto. * backgraph.c (SET_OH_BG_PTR): Prefix HIDE_POINTER() with "GC_". * finalize.c (GC_general_register_disappearing_link, GC_unregister_disappearing_link, GC_register_finalizer_inner, GC_finalize): Ditto. * include/private/dbg_mlc.h (HIDE_BACK_PTR): Ditto. * include/private/dbg_mlc.h (GC_I_HIDE_POINTERS): Define instead of I_HIDE_POINTERS. * include/private/gc_priv.h (GC_I_HIDE_POINTERS): Ditto. * include/gc.h (_GC_H): Strip leading underscore. * include/gc_backptr.h (_GC_H): Ditto. * include/gc_gcj.h (_GC_H): Ditto. * include/gc_mark.h (_GC_H): Ditto. * include/gc_typed.h (_GC_TYPED_H, _GC_H): Ditto. * include/javaxfc.h (_GC_H): Ditto. * include/new_gc_alloc.h (__GC_SPECIALIZE): Ditto. * include/private/dbg_mlc.h (_GC_H): Ditto. * include/private/gc_priv.h (_GC_H): Ditto. * include/gc_backptr.h: Reformat the code (adjust indentation, comment out function parameter names). * include/gc_gcj.h: Ditto. * include/gc_mark.h: Ditto. * include/gc_typed.h: Ditto. * include/javaxfc.h: Ditto. * include/private/dbg_mlc.h: Ditto. * include/private/gc_priv.h: Ditto.
Diffstat (limited to 'backgraph.c')
-rw-r--r--backgraph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backgraph.c b/backgraph.c
index 902db90..97d362e 100644
--- a/backgraph.c
+++ b/backgraph.c
@@ -166,8 +166,8 @@ GC_INLINE void pop_in_progress(ptr_t p)
}
#define GET_OH_BG_PTR(p) \
- (ptr_t)REVEAL_POINTER(((oh *)(p)) -> oh_bg_ptr)
-#define SET_OH_BG_PTR(p,q) (((oh *)(p)) -> oh_bg_ptr = HIDE_POINTER(q))
+ (ptr_t)GC_REVEAL_POINTER(((oh *)(p)) -> oh_bg_ptr)
+#define SET_OH_BG_PTR(p,q) (((oh *)(p)) -> oh_bg_ptr = GC_HIDE_POINTER(q))
/* Execute s once for each predecessor q of p in the points-to graph. */
/* s should be a bracketed statement. We declare q. */