]> granicus.if.org Git - gc/commitdiff
2008-09-24 Hans Boehm <Hans.Boehm@hp.com> (Really Ivan Maidanski)
authorhboehm <hboehm>
Thu, 25 Sep 2008 00:51:23 +0000 (00:51 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:43 +0000 (21:06 +0400)
* win32_threads.c (GC_pthread_join, GC_pthread_start_inner):
Remove unused variables.
* darwin_stop_world.c: Always declare GC_thr_init().
* dbg_mlc.c (GC_debug_free_inner): Dont touch oh_sz if
SHORT_DBG_HDRS is defined.
* include/private/gc_pmark.h (OR_WORD_EXIT_IF_SET, parallel
mark, USE_MARK_BITS version): Refer to correct parameter name.

ChangeLog
darwin_stop_world.c
dbg_mlc.c
include/private/gc_pmark.h
win32_threads.c

index c25c9eac55d9ac906512fa393913a378af12ad15..c3e43bfafb35b721ac050786cb48d52dd7c8c055 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-09-24  Hans Boehm <Hans.Boehm@hp.com> (Really Ivan Maidanski)
+       * win32_threads.c (GC_pthread_join, GC_pthread_start_inner):
+       Remove unused variables.
+       * darwin_stop_world.c: Always declare GC_thr_init().
+       * dbg_mlc.c (GC_debug_free_inner): Dont touch oh_sz if
+       SHORT_DBG_HDRS is defined.
+       * include/private/gc_pmark.h (OR_WORD_EXIT_IF_SET, parallel
+       mark, USE_MARK_BITS version): Refer to correct parameter name.
+
 2008-09-24  Hans Boehm <Hans.Boehm@hp.com> (Really Ivan Maidanski)
        * finalize.c (GC_general_register_disappearing_link): Remove
        redundant code.
index 7ed9c8997ebac0e9f38a52195cc0e6cf991fd5db..0ac866096b05befb4684eaed545ea9ea05b18298 100644 (file)
@@ -72,9 +72,10 @@ unsigned long FindTopOfStack(unsigned long stack_start)
   return (unsigned long)frame;
 }
 
-#ifdef DARWIN_DONT_PARSE_STACK
 void GC_thr_init(void);
 
+#ifdef DARWIN_DONT_PARSE_STACK
+
 void GC_push_all_stacks(void)
 {
   int i;
index a09bd54f936f10406bb6e2d48d73796de25439a5..99b6cbaa7f6db374e1d541093371d5dc3b8dd6a8 100644 (file)
--- a/dbg_mlc.c
+++ b/dbg_mlc.c
@@ -762,8 +762,10 @@ void GC_debug_free_inner(void * p)
 {
     ptr_t base = GC_base(p);
     GC_ASSERT((ptr_t)p - (ptr_t)base == sizeof(oh));
+#   ifndef SHORT_DBG_HDRS
     /* Invalidate size */
         ((oh *)base) -> oh_sz = GC_size(base);
+#   endif
     GC_free_inner(base);
 }
 #endif
index a72bf169cffb05bcf0bcd305575332ddb99e79ca..48e9ae9e0f2be6a5d4b763847209bcc04f7d3057 100644 (file)
@@ -172,10 +172,10 @@ exit_label: ; \
       /* For our uses, that's benign:                                       */
 #     define OR_WORD_EXIT_IF_SET(addr, bits, exit_label) \
         { \
-          if (!(*(addr) & (mask))) { \
-            AO_or((AO_t *)(addr), (mask); \
+          if (!(*(addr) & (bits))) { \
+            AO_or((AO_t *)(addr), (bits)); \
           } else { \
-            goto label; \
+            goto exit_label; \
           } \
         }
 #   else
index f18f934ef6eb2717aff1310e3dd83389f88f2630..85ad31620a99b4ca93fae6025fbe4da655b65552 100644 (file)
@@ -1212,7 +1212,6 @@ struct start_info {
 
 int GC_pthread_join(pthread_t pthread_id, void **retval) {
     int result;
-    int i;
     GC_thread joinee;
 
 #   if DEBUG_CYGWIN_THREADS
@@ -1316,8 +1315,6 @@ STATIC void * GC_pthread_start_inner(struct GC_stack_base *sb, void * arg)
     DWORD thread_id = GetCurrentThreadId();
     pthread_t pthread_id = pthread_self();
     GC_thread me;
-    GC_bool detached;
-    int i;
 
 #   if DEBUG_CYGWIN_THREADS
       GC_printf("thread 0x%x(0x%x) starting...\n",(int)pthread_id,