_Jv_SetMaximumHeapSize

Erik Poupaert erik.poupaert@freestyler-toolkit.org
Sun Sep 21 13:01:00 GMT 2003


> 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)




More information about the Java mailing list