Getting the current thread

Chris Pedley cp114 at york.ac.uk
Sat Dec 16 06:57:03 PST 2000


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.



More information about the kaffe mailing list