summaryrefslogtreecommitdiff
path: root/win32_threads.c
diff options
context:
space:
mode:
authorivmai <ivmai>2011-04-02 17:57:23 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:57 +0200
commit4b9291d6231d2b702e25b035e6e8c73aebc8473f (patch)
treef017d0405dce8885d25fe66b63895342d719ca67 /win32_threads.c
parentc722dc23c07dc73f0a3f73d5f54d9b39a25bea2d (diff)
2011-04-02 Ivan Maidanski <ivmai@mail.ru>
* allchblk.c (GC_print_hblkfreelist): Adjust (make uniform across BDWGC) printed message (adjust letters case, terminating dot and new line symbols). * alloc.c (GC_check_fl_marks): Ditto. * backgraph.c (new_back_edges): Ditto. * checksums.c (GC_check_dirty): Ditto. * darwin_stop_world.c (GC_push_all_stacks, GC_suspend_thread_list): Ditto. * dbg_mlc.c (GC_print_type, GC_debug_free, GC_debug_realloc, store_old): Ditto. * dyn_load.c (GC_register_dynamic_libraries): Ditto. * mark.c (GC_initiate_gc, GC_mark_some, GC_mark_from, GC_push_all, GC_push_selected, GC_push_next_marked_dirty): Ditto. * mark_rts.c (GC_exclude_static_roots_inner): Ditto. * os_dep.c (GC_remap, GC_default_push_other_roots, GC_push_thread_structures, GC_dirty_init, GC_read_dirty, catch_exception_raise_state, catch_exception_raise_state_identity, GC_mprotect_thread_notify, GC_mprotect_thread, catch_exception_raise): Ditto. * pthread_stop_world.c (GC_print_sig_mask, GC_push_all_stacks, GC_stop_world, GC_stop_init): Ditto. * pthread_support.c (GC_thr_init, GC_register_my_thread_inner, GC_start_routine): Ditto. * win32_threads.c (GC_register_my_thread_inner, GC_push_all_stacks, GC_win32_start_inner, GC_pthread_join, GC_pthread_start_inner): Ditto. * alloc.c (GC_expand_hp_inner): Realign the code. * mark.c (GC_mark_from, GC_mark_local, GC_do_parallel_mark): Ditto. * misc.c (GC_init): Ditto. * os_dep.c (GC_dirty_init, GC_read_dirty): Ditto. * include/private/gc_pmark.h (PUSH_CONTENTS_HDR): Ditto. * tests/test.c (run_one_test): Ditto. * misc.c (GC_err_puts): Document. * misc.c (GC_err_write): Remove. * os_dep.c (dump_maps): Ditto. * include/private/gc_priv.h (GC_err_write): Ditto. * os_dep.c (GC_print_address_map): Call GC_err_puts() instead of dump_maps() and GC_err_write(). * os_dep.c (GC_read_dirty): Remove redundant brackets.
Diffstat (limited to 'win32_threads.c')
-rw-r--r--win32_threads.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/win32_threads.c b/win32_threads.c
index 1e07a38..796b909 100644
--- a/win32_threads.c
+++ b/win32_threads.c
@@ -431,7 +431,7 @@ STATIC GC_thread GC_register_my_thread_inner(const struct GC_stack_base *sb,
/* FIXME: We should eventually declare Win95 dead and use AO_ */
/* primitives here. */
if (i == MAX_THREADS - 1)
- ABORT("too many threads");
+ ABORT("Too many threads");
}
/* Update GC_max_thread_index if necessary. The following is */
/* safe, and unlike CompareExchange-based solutions seems to work */
@@ -455,7 +455,7 @@ STATIC GC_thread GC_register_my_thread_inner(const struct GC_stack_base *sb,
me = GC_new_thread(thread_id);
GC_in_thread_creation = FALSE;
if (me == 0)
- ABORT("Failed to allocate memory for thread registering.");
+ ABORT("Failed to allocate memory for thread registering");
}
# ifdef GC_PTHREADS
/* me can be NULL -> segfault */
@@ -1358,7 +1358,7 @@ GC_INNER void GC_push_all_stacks(void)
}
# endif
if (!found_me && !GC_in_thread_creation)
- ABORT("Collecting from unknown thread.");
+ ABORT("Collecting from unknown thread");
GC_total_stacksize = total_size;
}
@@ -2020,7 +2020,7 @@ GC_INNER void GC_get_next_stack(char *start, char *limit,
}
# if DEBUG_WIN32_THREADS
- GC_printf("thread 0x%x returned from start routine.\n",
+ GC_printf("thread 0x%x returned from start routine\n",
(unsigned)GetCurrentThreadId());
# endif
return ret;
@@ -2342,12 +2342,12 @@ GC_INNER void GC_thr_init(void)
GC_thread joinee;
# if DEBUG_CYGWIN_THREADS
- GC_printf("thread 0x%x(0x%x) is joining thread 0x%x.\n",
+ GC_printf("thread 0x%x(0x%x) is joining thread 0x%x\n",
(int)pthread_self(), (int)GetCurrentThreadId(),
(int)pthread_id);
# endif
# if DEBUG_WIN32_PTHREADS
- GC_printf("thread 0x%x(0x%x) is joining thread 0x%x.\n",
+ GC_printf("thread 0x%x(0x%x) is joining thread 0x%x\n",
(int)(pthread_self()).p, (int)GetCurrentThreadId(),
pthread_id.p);
# endif
@@ -2378,12 +2378,12 @@ GC_INNER void GC_thr_init(void)
} /* otherwise DllMain handles it. */
# if DEBUG_CYGWIN_THREADS
- GC_printf("thread 0x%x(0x%x) completed join with thread 0x%x.\n",
+ GC_printf("thread 0x%x(0x%x) completed join with thread 0x%x\n",
(int)pthread_self(), (int)GetCurrentThreadId(),
(int)pthread_id);
# endif
# if DEBUG_WIN32_PTHREADS
- GC_printf("thread 0x%x(0x%x) completed join with thread 0x%x.\n",
+ GC_printf("thread 0x%x(0x%x) completed join with thread 0x%x\n",
(int)(pthread_self()).p, (int)GetCurrentThreadId(),
pthread_id.p);
# endif
@@ -2481,11 +2481,11 @@ GC_INNER void GC_thr_init(void)
pthread_cleanup_pop(1);
# if DEBUG_CYGWIN_THREADS
- GC_printf("thread 0x%x(0x%x) returned from start routine.\n",
+ GC_printf("thread 0x%x(0x%x) returned from start routine\n",
(int)pthread_self(),(int)GetCurrentThreadId());
# endif
# if DEBUG_WIN32_PTHREADS
- GC_printf("thread 0x%x(0x%x) returned from start routine.\n",
+ GC_printf("thread 0x%x(0x%x) returned from start routine\n",
(int)(pthread_self()).p, (int)GetCurrentThreadId());
# endif
return(result);
@@ -2503,11 +2503,11 @@ GC_INNER void GC_thr_init(void)
GC_ASSERT(!GC_win32_dll_threads);
# if DEBUG_CYGWIN_THREADS
- GC_printf("thread 0x%x(0x%x) called pthread_exit().\n",
+ GC_printf("thread 0x%x(0x%x) called pthread_exit()\n",
(int)pthread_self(),(int)GetCurrentThreadId());
# endif
# if DEBUG_WIN32_PTHREADS
- GC_printf("thread 0x%x(0x%x) called pthread_exit().\n",
+ GC_printf("thread 0x%x(0x%x) called pthread_exit()\n",
(int)(pthread_self()).p,(int)GetCurrentThreadId());
# endif