summaryrefslogtreecommitdiff
path: root/thread_local_alloc.c
diff options
context:
space:
mode:
authorivmai <ivmai>2011-03-13 12:28:29 +0000
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 21:06:56 +0400
commit35260b7ff2dc15a5194758ab6f3c73fbfb40acb3 (patch)
tree0a9151a42a3358c02baff0823a236b867da76777 /thread_local_alloc.c
parentdd7e62d18a06b7b12084e5db795ac9d43a366341 (diff)
downloadbdwgc-35260b7ff2dc15a5194758ab6f3c73fbfb40acb3.tar.gz
2011-03-13 Ivan Maidanski <ivmai@mail.ru>
* finalize.c (GC_register_finalizer_inner): Fix a typo in a comment. *include/private/gcconfig.h (STACKBOTTOM): Ditto. * gcj_mlc.c (GC_core_gcj_malloc): Replace 0/1 with TRUE/FALSE in EXPECT (the 2nd argument). * malloc.c (GC_core_malloc_atomic, GC_core_malloc, GC_free): Ditto. * mark.c (GC_mark_and_push, GC_mark_and_push_stack): Ditto. * thread_local_alloc.c (GC_malloc, GC_malloc_atomic): Ditto. * include/private/gc_hdrs.h (HC_GET_HDR): Ditto. * include/private/gc_priv.h (SMALL_OBJ): Ditto. * include/private/specific.h (getspecific): Ditto. * pthread_support.c (LOCK_STATS): Add a comment.
Diffstat (limited to 'thread_local_alloc.c')
-rw-r--r--thread_local_alloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/thread_local_alloc.c b/thread_local_alloc.c
index 1e9120d4..2e27331d 100644
--- a/thread_local_alloc.c
+++ b/thread_local_alloc.c
@@ -139,7 +139,7 @@ GC_API void * GC_CALL GC_malloc(size_t bytes)
# if !defined(USE_PTHREAD_SPECIFIC) && !defined(USE_WIN32_SPECIFIC)
GC_key_t k = GC_thread_key;
- if (EXPECT(0 == k, 0)) {
+ 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);
@@ -149,7 +149,7 @@ GC_API void * GC_CALL GC_malloc(size_t bytes)
tsd = GC_getspecific(GC_thread_key);
# endif
# if defined(USE_PTHREAD_SPECIFIC) || defined(USE_WIN32_SPECIFIC)
- if (EXPECT(0 == tsd, 0)) {
+ if (EXPECT(0 == tsd, FALSE)) {
return GC_core_malloc(bytes);
}
# endif
@@ -176,7 +176,7 @@ GC_API void * GC_CALL GC_malloc_atomic(size_t bytes)
# if !defined(USE_PTHREAD_SPECIFIC) && !defined(USE_WIN32_SPECIFIC)
GC_key_t k = GC_thread_key;
- if (EXPECT(0 == k, 0)) {
+ 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);
@@ -186,7 +186,7 @@ GC_API void * GC_CALL GC_malloc_atomic(size_t bytes)
tsd = GC_getspecific(GC_thread_key);
# endif
# if defined(USE_PTHREAD_SPECIFIC) || defined(USE_WIN32_SPECIFIC)
- if (EXPECT(0 == tsd, 0)) {
+ if (EXPECT(0 == tsd, FALSE)) {
return GC_core_malloc(bytes);
}
# endif