+2011-05-10 Ivan Maidanski <ivmai@mail.ru>
+
+ * thread_local_alloc.c (GC_malloc, GC_malloc_atomic): Join
+ adjacent "#ifdef".
+ * thread_local_alloc.c (GC_malloc_atomic): Call
+ GC_core_malloc_atomic (instead of GC_core_malloc).
+
2011-05-10 Ivan Maidanski <ivmai@mail.ru>
* pthread_start.c (GC_start_rtn_prepare_thread): Change return
type).
* os_dep.c (GC_dirty_init): Print a message about SIG_IGN detected
(for SIGSEGV/BUS) only if GC_print_stats.
- * os_dep.c (catch_exception_raise): Join 2 adjucent GC_err_printf
+ * os_dep.c (catch_exception_raise): Join 2 adjacent GC_err_printf
calls.
2010-11-25 Ivan Maidanski <ivmai@mail.ru>
tsd = GC_getspecific(k);
# else
tsd = GC_getspecific(GC_thread_key);
-# endif
-# if defined(USE_PTHREAD_SPECIFIC) || defined(USE_WIN32_SPECIFIC)
if (EXPECT(0 == tsd, FALSE)) {
return GC_core_malloc(bytes);
}
if (EXPECT(0 == k, FALSE)) {
/* We haven't yet run GC_init_parallel. That means */
/* we also aren't locking, so this is fairly cheap. */
- return GC_core_malloc(bytes);
+ return GC_core_malloc_atomic(bytes);
}
tsd = GC_getspecific(k);
# else
tsd = GC_getspecific(GC_thread_key);
-# endif
-# if defined(USE_PTHREAD_SPECIFIC) || defined(USE_WIN32_SPECIFIC)
if (EXPECT(0 == tsd, FALSE)) {
- return GC_core_malloc(bytes);
+ return GC_core_malloc_atomic(bytes);
}
# endif
GC_ASSERT(GC_is_initialized);