=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/gc/include/private/specific.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -p -r1.3 -r1.4 --- OpenXM_contrib2/asir2000/gc/include/private/specific.h 2002/07/24 08:00:21 1.3 +++ OpenXM_contrib2/asir2000/gc/include/private/specific.h 2003/06/24 05:11:42 1.4 @@ -85,7 +85,7 @@ static __inline__ void * PREFIXED(getspecific) (tsd * unsigned hash_val = CACHE_HASH(qtid); tse * volatile * entry_ptr = key -> cache + hash_val; tse * entry = *entry_ptr; /* Must be loaded only once. */ - if (entry -> qtid == qtid) { + if (EXPECT(entry -> qtid == qtid, 1)) { GC_ASSERT(entry -> thread == pthread_self()); return entry -> value; }