summaryrefslogtreecommitdiff
path: root/dyn_load.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 /dyn_load.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 'dyn_load.c')
-rw-r--r--dyn_load.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dyn_load.c b/dyn_load.c
index 498879a..93db044 100644
--- a/dyn_load.c
+++ b/dyn_load.c
@@ -612,7 +612,6 @@ void GC_register_dynamic_libraries(void)
{
struct link_map *lm;
-
# ifdef HAVE_DL_ITERATE_PHDR
if (GC_register_dynamic_libraries_dl_iterate_phdr()) {
return;
@@ -1224,7 +1223,8 @@ static void GC_dyld_image_remove(const struct GC_MACH_HEADER *hdr,
# endif
}
-void GC_register_dynamic_libraries(void) {
+void GC_register_dynamic_libraries(void)
+{
/* Currently does nothing. The callbacks are setup by GC_init_dyld()
The dyld library takes it from there. */
}
@@ -1235,7 +1235,8 @@ void GC_register_dynamic_libraries(void) {
This should be called BEFORE any thread in created and WITHOUT the
allocation lock held. */
-void GC_init_dyld(void) {
+void GC_init_dyld(void)
+{
static GC_bool initialized = FALSE;
if(initialized) return;
@@ -1320,7 +1321,6 @@ void GC_register_dynamic_libraries(void)
}
}
-
#else /* !PCR */
void GC_register_dynamic_libraries(void) {}