This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: performance problems
>>>>> "Bryce" == Bryce McKinlay <bryce@albatross.co.nz> writes:
Bryce> I actually hacked/implemented -ms and -mx in my local libgcj
Bryce> tree a while back when I was playing around with the GC. I was
Bryce> just scanning the command line arguments at runtime, calling
Bryce> the apropriate GC function with the arguments, and removing the
Bryce> parameter from 'args' in order to avoid conflicts with
Bryce> application code.
I don't like this approach because it breaks argument parsing for the
actual Java program. For instance if "-mx" is an argument to some
option that the user's code uses, then removing it is wrong.
I do think that "gij" should accept the same arguments as "java" and
it should interpret them the same way (or ignore them if they don't
make sense in our environment).
Maybe it does make sense to allow an environment variable to control
the runtime in the fully-native case. The environment variable could
have command line options in it.
Tom