This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch] testsuite OS-X/Darwin avoid deadlock in testsuite
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: Java Patches <java-patches at gcc dot gnu dot org>, Eric Christopher <echristo at apple dot com>
- Date: Tue, 05 Feb 2008 21:13:35 +0100
- Subject: [patch] testsuite OS-X/Darwin avoid deadlock in testsuite
Hi all,
the patch below prevents OS-X 10.5.1 on ppc from a deadlock.
There must be some os internals which causes a deadlock when calling
usleep with a value smaller than 40 (in combination with this testcase).
It is out of my scope to debug the os-x internals right now.
I just want to have a nightly build and test cycle w/o rebooting the
machine every morning.
People confirmed that I'm not the only one seeing this issue. See PR 35035.
Ok for trunk?
Andreas
2008-02-05 Andreas Tobler <a.tobler@schweiz.org>
* testsuite/libjava.jvmti/interp/natgetstacktrace.cc
(Java_getstacktrace_natRunner): Increase the usleep time to a value
which prevents OS-X to get into a deadlock.
Index: testsuite/libjava.jvmti/interp/natgetstacktrace.cc
===================================================================
--- testsuite/libjava.jvmti/interp/natgetstacktrace.cc (revision 132053)
+++ testsuite/libjava.jvmti/interp/natgetstacktrace.cc (working copy)
@@ -90,7 +90,7 @@
done = env->GetBooleanField (obj, done_id);
if (done == false)
break;
- usleep (10);
+ usleep (40);
}
while (done != false);
}