This is the mail archive of the java-patches@sources.redhat.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: enable __builtin_expect()


I think it is safe to enable __builtin_expect() now, as block reordering
has been turned on in gcc for a while now and glibc is using it. I've
had this enabled for a while and havn't seen any problems.

regards

  [ bryce ]


2000-10-09  Bryce McKinlay  <bryce@albatross.co.nz>

	* include/jvm.h: Enable __builtin_expect().

Index: jvm.h
===================================================================
RCS file: /cvs/java/libgcj/libjava/include/jvm.h,v
retrieving revision 1.30
diff -u -r1.30 jvm.h
--- jvm.h	2000/10/06 01:49:31	1.30
+++ jvm.h	2000/10/09 01:32:11
@@ -11,9 +11,6 @@
 #ifndef __JAVA_JVM_H__
 #define __JAVA_JVM_H__
 
-// FIXME: __builtin_expect doesn't work yet.
-#define __builtin_expect(A,B) (A)
-
 #include <gcj/javaprims.h>
 
 #include <java-assert.h>

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