summaryrefslogtreecommitdiff
path: root/dbg_mlc.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-10-17 12:12:52 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:50 +0200
commit8274f8d1e2e748fba76be6ddf2d09c105e7af778 (patch)
tree6ade0316134cce3c7699fe77b8be651391bed1c5 /dbg_mlc.c
parent454d418dec1eda78f7dedfebeec978a87d6ff773 (diff)
2009-10-17 Ivan Maidanski <ivmai@mail.ru>
* alloc.c (GC_never_stop_func, GC_check_fl_marks, GC_finish_collection): Reformat the code (make opening bracket style uniform across the file). * allchblk.c (GC_allochblk): Ditto. * backgraph.c (add_edge): Ditto. * dbg_mlc.c (GC_marked_for_finalization): Ditto. * dyn_load.c (GC_register_dynamic_libraries, GC_init_dyld): Ditto. * finalize.c (GC_null_finalize_mark_proc): Ditto. * gc_dlopen.c (GC_dlopen): Ditto. * mark.c (GC_push_marked1, GC_push_marked2, GC_push_marked4): Ditto. * misc.c (looping_handler, GC_call_with_gc_active, GC_do_blocking_inner, GC_do_blocking): Ditto. * os_dep.c (GC_get_main_stack_base, GC_read_dirty): Ditto. * pthread_support.c (GC_pthread_create, GC_pthread_sigmask, GC_pthread_join, GC_pthread_detach, GC_check_tls, GC_do_blocking_inner, GC_call_with_gc_active): Ditto. * reclaim.c (GC_reclaim_clear, GC_reclaim_block, GC_print_free_list): Ditto. * os_dep.c (GC_page_was_dirty, GC_page_was_ever_dirty, GC_remove_protection): Reformat the code (wrap long lines).
Diffstat (limited to 'dbg_mlc.c')
-rw-r--r--dbg_mlc.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/dbg_mlc.c b/dbg_mlc.c
index af0b509..75426da 100644
--- a/dbg_mlc.c
+++ b/dbg_mlc.c
@@ -84,7 +84,8 @@ GC_bool GC_has_other_debug_info(ptr_t p)
}
}
- void GC_marked_for_finalization(ptr_t dest) {
+ void GC_marked_for_finalization(ptr_t dest)
+ {
GC_store_back_pointer(MARKED_FOR_FINALIZATION, dest);
}
@@ -331,7 +332,7 @@ STATIC ptr_t GC_check_annotated_obj(oh *ohdr)
static GC_describe_type_fn GC_describe_type_fns[MAXOBJKINDS] = {0};
GC_API void GC_CALL GC_register_describe_type_fn(int kind,
- GC_describe_type_fn fn)
+ GC_describe_type_fn fn)
{
GC_describe_type_fns[kind] = fn;
}
@@ -481,7 +482,7 @@ GC_API void * GC_CALL GC_debug_malloc(size_t lb, GC_EXTRA_PARAMS)
}
GC_API void * GC_CALL GC_debug_malloc_ignore_off_page(size_t lb,
- GC_EXTRA_PARAMS)
+ GC_EXTRA_PARAMS)
{
void * result = GC_malloc_ignore_off_page(lb + DEBUG_BYTES);
@@ -500,7 +501,7 @@ GC_API void * GC_CALL GC_debug_malloc_ignore_off_page(size_t lb,
}
GC_API void * GC_CALL GC_debug_malloc_atomic_ignore_off_page(size_t lb,
- GC_EXTRA_PARAMS)
+ GC_EXTRA_PARAMS)
{
void * result = GC_malloc_atomic_ignore_off_page(lb + DEBUG_BYTES);
@@ -958,9 +959,9 @@ void GC_CALLBACK GC_debug_invoke_finalizer(void * obj, void * data)
#define OFN_UNSET (GC_finalization_proc)(signed_word)-1
/* Set ofn and ocd to reflect the values we got back. */
-static void store_old (void *obj, GC_finalization_proc my_old_fn,
- struct closure *my_old_cd, GC_finalization_proc *ofn,
- void **ocd)
+static void store_old(void *obj, GC_finalization_proc my_old_fn,
+ struct closure *my_old_cd, GC_finalization_proc *ofn,
+ void **ocd)
{
if (0 != my_old_fn) {
if (my_old_fn == OFN_UNSET) {