[kaffe] Re: fixing tests/internal

Dalibor Topic robilad at kaffe.org
Thu Jul 15 02:49:28 PDT 2004


Guilhem Lavaux wrote:
> Timothy Stack wrote:
> 
>>> Heya,
>>>
>>> it seems that the internal jit tests on CVS head can no longer be 
>>> built. I've tried to write a patch to fix that, but I just managed to 
>>> make the test compile & fail. Any idea what's wrong? I've attached my 
>>> patch.
>>>   
>>
>>
>> The problem is with JNI_GetDefaultJavaVMInitArgs() in jni-base.c, the 
>> JNI_VERSION_1_2 case does not initialize the args from 
>> Kaffe_JavaVMInitArgs like the JNI_VERSION_1_1 case does.  So, the 
>> minheap/maxheap values are zero and any allocations just fail.
>>
>>  
>>
> I agree with you. You should use JNI_VERSION_1_1 to make kaffe uses 
> Kaffe_JavaVMInitArgs instead of the new mechanism (which is still 
> experimental).
> 
> BTW, I'll continue writing new JNI 1.2 testcases to be sure the API is 
> functioning.

Thanks for the quick reply, guys, that fixed it. I'll check it in.

cheers,
dalibor topic




More information about the kaffe mailing list