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