This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: _Jv_SetMaximumHeapSize
> gcj Hello.java -shared -fpic -o Hello.so
> gij Hello -mx=128
What about the following patch to jvgenmain.c, line 143-144:
fprintf (stream, " _Jv_Compiler_Properties = props;\n");
--> patch goes here
fprintf (stream, " JvRunMain (&%s, argc, argv);\n", mangled_classname);
Could we add in between, something like:
if (strcmp (p, "-mx="))
fprintf (stream, " _Jv_SetMaximumHeapSize (%s);\n", argv[i+1]);
The information would still have to flow from the gcj commandline options to
jvgenmain. I guess that would require another patch. I'll have a go at it, if you
guys think it would be useful... (I think it would)