From: hboehm Date: Wed, 22 Oct 2008 00:45:55 +0000 (+0000) Subject: 2008-10-21 Hans Boehm (Really Ivan Maidanski) X-Git-Tag: gc7_2alpha2~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b91f19d0827fa88110be7f9c8fee7edf086c5376;p=gc 2008-10-21 Hans Boehm (Really Ivan Maidanski) * pthread_support.c: Comment out LOCK_STATS. * include/gc.h: Fix comments. --- diff --git a/ChangeLog b/ChangeLog index b2bea054..92c3189e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-10-21 Hans Boehm (Really Ivan Maidanski) + * pthread_support.c: Comment out LOCK_STATS. + * include/gc.h: Fix comments. + 2008-10-20 Hans Boehm (Really Ivan Maidanski) * misc.c (GC_init_inner): Enable GC_LOG_FILE on Cygwin. * include/private/gcconfig.h: Consider USE_MMAP for Cygwin. diff --git a/include/gc.h b/include/gc.h index 1543796a..e8dd7477 100644 --- a/include/gc.h +++ b/include/gc.h @@ -781,7 +781,7 @@ GC_API int GC_general_register_disappearing_link (void * * link, void * obj); /* cleared. */ /* This can be used to implement certain types of */ /* weak pointers. Note however that this generally */ - /* requires that thje allocation lock is held (see */ + /* requires that the allocation lock is held (see */ /* GC_call_with_allock_lock() below) when the disguised */ /* pointer is accessed. Otherwise a strong pointer */ /* could be recreated between the time the collector */ diff --git a/pthread_support.c b/pthread_support.c index 02e144c7..3ea2d732 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -1256,7 +1256,7 @@ volatile GC_bool GC_collecting = 0; /* yield by calling pthread_mutex_lock(); it never makes sense to */ /* explicitly sleep. */ -#define LOCK_STATS +/* #define LOCK_STATS */ #ifdef LOCK_STATS unsigned long GC_spin_count = 0; unsigned long GC_block_count = 0;