[kaffe] Assertion fails in JNI access to Weak references.

Guilhem Lavaux guilhem at kaffe.org
Mon Sep 25 11:17:03 PDT 2006

Tim Bevan wrote:
> I can reduce my real problem to the attached class and native metbod.
> We are simply creating a weak reference to the class then releasing it
> once we have finished with it. Deleting the weak reference aborts the
> program!
> Hello, world from java first
> Got weak reference
> kaffe-bin: jni-refs.c:290: KaffeJNI_DeleteWeakGlobalRef: Assertion
> `((main_collector)->ops->getObjectIndex)((Collector*)(main_collector), (
> ref)) == KGC_ALLOC_VMWEAKREF' failed.
> Program received signal SIGABRT, Aborted.

Hi again,

The bug was a bit more subtle but it should be fixed by now in CVS.
Please tell me if something else goes wrong.



More information about the kaffe mailing list