Getting the current thread

Chris Pedley kaffe@rufus.w3.org
Sat, 16 Dec 2000 14:57:03 +0000 (GMT)


Why is it not possible to find out about the current thread
during a call to gcMalloc (from gc-incremental.c).  I have
written:

Hjava_lang_Thread* tid;
tid = getCurrentThread();

but it raises a segmentation fault at runtime.  Are there
some circumstances from which you cannot call getCurrentThread()?

Thanks,
Chris.