This is the mail archive of the java-patches@gcc.gnu.org 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]
Other format: [Raw text]

Re: [RFA/GC] redefine thread suspension interface for all platforms


Hi Keith,

Keith Seitz wrote:
[pardon the top post]

Ping.

If anyone has a system other than x86 linux, powerpc darwin, or x86 cygwin an can test this patch (it doesn't take much time to rebuild boehm-gc and libjava), I would be very, very grateful...

Ok, I run a build on linux-pcc, hpux-pa. sparc-solaris8 multilib and powerpc-apple-darwin8.7.0. All except darwin seem to build boehm-gc (hpux-pa is also outstanding but this is due to build times). I have to test each but it looks promising.
Darwin fails! Do you have a very ancient darwin os running?
Below you see what I have to do to make it build on darwin-pcc.


The libjava tests will take a while, I'll give u an update.

Andreas

Index: include/gc.h
===================================================================
--- include/gc.h (revision 115072)
+++ include/gc.h (working copy)
@@ -1036,18 +1036,35 @@
# include "gc_local_alloc.h"
#endif
+ /* External thread suspension support. These functions do not
+ * implement suspension counts or any other higher-level abstraction.
+ * Threads which have been suspended numerous times will resume with
+ * the very first call to GC_resume_thread.
+ */
+#if defined(GC_DARWIN_THREADS)

# include <mach/thread_act.h>


+      typedef thread_act_t GC_thread_t;
+#elif defined(GC_SOLARIS_PTHREADS)



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