This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: remove __builtin_expect in Class.h


I'm checking in this patch.

regards

  [ bryce ]

2000-05-20  Bryce McKinlay  <bryce@albatross.co.nz>

	Fix for PR libgcj/226:
	* java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
	since this is an installed header.

Index: Class.h
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/lang/Class.h,v
retrieving revision 1.21
diff -u -r1.21 Class.h
--- Class.h	2000/05/19 17:55:32	1.21
+++ Class.h	2000/05/20 23:25:21
@@ -206,8 +206,9 @@
   inline friend void 
   _Jv_InitClass (jclass klass)
   {
-    if (__builtin_expect (klass->state != JV_STATE_DONE, false))
-      klass->initializeClass ();
+    if (klass->state == JV_STATE_DONE)
+      return;
+    klass->initializeClass ();  
   }
 
   friend _Jv_Method* _Jv_LookupDeclaredMethod (jclass, _Jv_Utf8Const *, 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]