[kaffe] CVS kaffe (robilad): Don't set thread priorities on OpenBSD
Kaffe CVS
cvs-commits at kaffe.org
Fri Sep 9 08:59:20 PDT 2005
PatchSet 6887
Date: 2005/09/09 15:54:14
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Don't set thread priorities on OpenBSD
2005-09-09 Kurt Miller <truk at optonline.net>
* configure.ac: Don't check for functions to set
priorities on OpenBSD, to avoid starvation on
that platform.
Members:
ChangeLog:1.4408->1.4409
configure:1.483->1.484
configure.ac:1.165->1.166
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4408 kaffe/ChangeLog:1.4409
--- kaffe/ChangeLog:1.4408 Fri Sep 9 15:15:22 2005
+++ kaffe/ChangeLog Fri Sep 9 15:54:14 2005
@@ -1,3 +1,9 @@
+2005-09-09 Kurt Miller <truk at optonline.net>
+
+ * configure.ac: Don't check for functions to set
+ priorities on OpenBSD, to avoid starvation on
+ that platform.
+
2005-09-09 Dalibor Topic <robilad at kaffe.org>
* kaffe/jvmpi/jvmpi_kaffe.c (jvmpiFillMethodLoad):
Index: kaffe/configure
diff -u kaffe/configure:1.483 kaffe/configure:1.484
--- kaffe/configure:1.483 Sun Aug 21 18:00:53 2005
+++ kaffe/configure Fri Sep 9 15:54:18 2005
@@ -39107,7 +39107,9 @@
# sched_get_priority_* functions are not implemented on OpenBSD <= 3.4
-# at least.
+# at least. setting pthread priorities on OpenBSD has unexpected results,
+# so don't enable setting them for OpenBSD.
+if test x"$Khost_os" != x"openbsd2" ; then
for ac_func in sched_get_priority_max
do
@@ -39312,7 +39314,7 @@
fi
done
-cat >conftest.$ac_ext <<_ACEOF
+ cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
@@ -39323,7 +39325,7 @@
#ifdef SCHED_OTHER
Found_SCHED_OTHER
#endif
- >
+ >
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
@@ -39337,6 +39339,7 @@
fi
rm -f conftest*
+fi
Index: kaffe/configure.ac
diff -u kaffe/configure.ac:1.165 kaffe/configure.ac:1.166
--- kaffe/configure.ac:1.165 Sun Aug 21 18:00:58 2005
+++ kaffe/configure.ac Fri Sep 9 15:54:24 2005
@@ -1358,18 +1358,21 @@
AM_ICONV
# sched_get_priority_* functions are not implemented on OpenBSD <= 3.4
-# at least.
-AC_CHECK_FUNCS([sched_get_priority_max])
-AC_CHECK_FUNCS([sched_get_priority_min])
-AC_EGREP_HEADER(Found_SCHED_OTHER,
- [
+# at least. setting pthread priorities on OpenBSD has unexpected results,
+# so don't enable setting them for OpenBSD.
+if test x"$Khost_os" != x"openbsd2" ; then
+ AC_CHECK_FUNCS([sched_get_priority_max])
+ AC_CHECK_FUNCS([sched_get_priority_min])
+ AC_EGREP_HEADER(Found_SCHED_OTHER,
+ [
#include <sched.h>
#ifdef SCHED_OTHER
Found_SCHED_OTHER
#endif
- ],
- [ AC_DEFINE(HAVE_SCHED_OTHER_IN_SCHED, 1, [Defined if SCHED_OTHER is in sched.h])
-])
+ ],
+ [ AC_DEFINE(HAVE_SCHED_OTHER_IN_SCHED, 1, [Defined if SCHED_OTHER is in sched.h])
+ ])
+fi
dnl pthread_attr_setschedpolicy in not implemented on NetBSD <= 1.6
dnl pthread_yield is not implemented on any systems.
More information about the kaffe
mailing list