]> granicus.if.org Git - gc/commitdiff
2008-10-21 Hans Boehm <Hans.Boehm@hp.com> (Really Ivan Maidanski)
authorhboehm <hboehm>
Wed, 22 Oct 2008 00:45:55 +0000 (00:45 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:43 +0000 (21:06 +0400)
* pthread_support.c: Comment out LOCK_STATS.
* include/gc.h: Fix comments.

ChangeLog
include/gc.h
pthread_support.c

index b2bea054be35f5fe63ff4e91873c8e884f6d6400..92c3189e9fe950c9abf4c9841c9354709d086116 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-21  Hans Boehm <Hans.Boehm@hp.com> (Really Ivan Maidanski)
+       * pthread_support.c: Comment out LOCK_STATS.
+       * include/gc.h: Fix comments.
+
 2008-10-20  Hans Boehm <Hans.Boehm@hp.com> (Really Ivan Maidanski)
        * misc.c (GC_init_inner): Enable GC_LOG_FILE on Cygwin.
        * include/private/gcconfig.h: Consider USE_MMAP for Cygwin.
index 1543796a53e71f1b7e538ba9526c166e8c678bff..e8dd74777fb6f5fba2968c9e7f0946a0b3f6fe3a 100644 (file)
@@ -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    */
index 02e144c77e8d460fd55471d419eb552350a8a77d..3ea2d732bdf4c9c23a38a3679b5bdd2e9d2e2085 100644 (file)
@@ -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;