_Jv_SetMaximumHeapSize

Bryce McKinlay bryce@mckinlay.net.nz
Mon Sep 22 23:48:00 GMT 2003


On Monday, Sep 22, 2003, at 05:39 Pacific/Auckland, Erik Poupaert wrote:

> What we have today, is no support -- or so to speak -- for invoking
> _Jv_SetMaximumHeapSize() when starting a native executable; except for 
> the option in
> which you bypass jvgenmain and supply your own main() function; but 
> that's rather a
> workaround than real support.

My preferred solution is an environment variable, ie GCJFLAGS. Libgcj 
would have unified command-line processing code between gij, GCJFLAGS, 
and the invocation interface. So, for example, you could do something 
like

GCJFLAGS="-mx=128M -Dfoo=bar" ./myapp

This has been on my "to-do list" for a long time!

Regards

Bryce.




More information about the Java mailing list