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.