FYI: Merge GC 6.3

Bryce McKinlay mckinlay@redhat.com
Wed Aug 18 15:15:00 GMT 2004


Looks good to me, too. I'm checking this in.

Bryce


2004-08-16  Bryce McKinlay  <mckinlay@redhat.com>

    * specific.c: Check GC_LINUX_THREADS before including
    private/specific.h. From Richard Earnshaw.

--- specific.c  13 Aug 2004 23:05:30 -0000      1.5
+++ specific.c  16 Aug 2004 23:05:11 -0000
@@ -12,10 +12,11 @@
  */
 
 #include "private/gc_priv.h" /* For GC_compare_and_exchange, 
GC_memory_barrier */
-#include "private/specific.h"
 
 #if defined(GC_LINUX_THREADS)
 
+#include "private/specific.h"
+
 static tse invalid_tse = {INVALID_QTID, 0, 0, INVALID_THREADID};
                        /* A thread-specific data entry which will 
never       */
                        /* appear valid to a reader.  Used to fill in 
empty    */




Boehm, Hans wrote:

>I agree that putting the ifdef in the middle should be OK.  At least there
>seem to be no ill effects for the stand-alone collector.
>
>Hans
>
>  
>
>>-----Original Message-----
>>From: Richard Earnshaw [mailto:rearnsha@buzzard.freeserve.co.uk]
>>Sent: Monday, August 16, 2004 2:59 PM
>>To: Bryce McKinlay
>>Cc: java-patches@gcc.gnu.org; rearnsha@buzzard.freeserve.co.uk; Hans
>>Boehm
>>Subject: Re: FYI: Merge GC 6.3 
>>
>>
>>
>>    
>>
>>>Index: specific.c
>>>===================================================================
>>>RCS file: /cvs/gcc/gcc/boehm-gc/specific.c,v
>>>retrieving revision 1.1.1.3
>>>diff -u -r1.1.1.3 specific.c
>>>--- specific.c	28 Jul 2003 03:46:09 -0000	1.1.1.3
>>>+++ specific.c	13 Aug 2004 22:50:12 -0000
>>>@@ -11,11 +11,11 @@
>>>  * modified is included with the above copyright notice.
>>>  */
>>> 
>>>-#if defined(GC_LINUX_THREADS)
>>>-
>>> #include "private/gc_priv.h" /* For 
>>>      
>>>
>>GC_compare_and_exchange, GC_memory_barrier */
>>    
>>
>>> #include "private/specific.h"
>>> 
>>>+#if defined(GC_LINUX_THREADS)
>>>+
>>> static tse invalid_tse = {INVALID_QTID, 0, 0, INVALID_THREADID};
>>> 			/* A thread-specific data entry which 
>>>      
>>>
>>will never	*/
>>    
>>
>>> 			/* appear valid to a reader.  Used to 
>>>      
>>>
>>fill in empty	*/
>>
>>This bit breaks an arm-elf cross (in fact, anything with out 
>>pthreads I 
>>suspect), since private/specific.h uses pthread_t unguarded.
>>
>>I think it's safe to put the check *between* the two includes, since 
>>specific.h doesn't include anything other than errno.h.
>>
>>R.
>>
>>
>>    
>>



More information about the Java-patches mailing list