[fedora-java] rssowl: libgcj bugs that need fixing for it to run

Anthony Green green at redhat.com
Mon Jul 4 01:49:15 UTC 2005


On Sun, 2005-07-03 at 12:08 -0600, Tom Tromey wrote:
> Robin>  2. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13212
> Robin> "AttachCurrentThread() not working"
> 
> This one looks hard.  The GC likes to intercept some pthread calls in
> order to do things like add the new stacks to the root set.  Maybe
> there is some way we can make this work for Linux though.

The attached trick appears to work.  Rather than wrap the pthread_create
symbol, we override it with our own implementation and then use a glibc
runtime linker trick to get a pointer to the real pthread_create.

I can work up a submittable patch if you're in agreement with the
general approach.

AG


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2247 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/java-devel/attachments/20050703/a56304f5/attachment.bin 


More information about the java-devel mailing list