[kaffe] Default stack size

Dalibor Topic robilad at kaffe.org
Tue Jun 8 01:46:02 PDT 2004


Guilhem Lavaux wrote:
> Dalibor Topic wrote:
> 
>> Dalibor Topic wrote:
>>
>>> Guilhem Lavaux wrote:
>>>
>>>> Hi,
>>>>
>>>> I have just committed some new code for stack size handling. Now, on 
>>>> platforms which support, kaffe uses setrlimit to update its maximum 
>>>> stack size according to -ss. The problem is that by default we have 
>>>> a stack of 32k on ix86 which is quite short for many applications. 
>>>> Maybe we should increase the default stack size for the main thread...
>>>
>>>
>>>
>>>
>>> Thanks!
>>>
>>> I wouldn't mind increasing the stack size. Kero and Fabien reported 
>>> problems on arm linux till they increased the stack size to 48k, for 
>>> example. The default stack size on the JDK is at least 512k in 1.3 :)
>>>
>>> But is 512k necessary for kjc?
>>
>>
>>
>> I mean, I'd suggest 64k as the new default, if 32k is too small. do 
>> you have some particular application that needs more?
>>
>> cheers,
>> dalibor topic
>>
> 
> 
> No, but I haven't yet tested the real stack size needed by kjc. I just 
> know that 500k is sufficient (there is a lot of recursive code in kjc so 
> it might be high).

It seems like I need 64k for i386-linux-jit3 for compiling mauve. So I'd 
say let's raise it to 64k in general.

cheers,
dalibor topic




More information about the kaffe mailing list