Tom Tromey - Re: [Patch] Java: Add heap dump and analyze support. (original) (raw)

This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

"David" == David Daney ddaney@avtrex.com writes:

David> New version of the patch:

Thanks. I'm afraid I have one blocking concern.

David> Index: libjava/classpath/lib/Makefile.am [...] David> +gcj_tools_classpath = $(top_srcdir)/tools/classes David> +compile_classpath = (vmclasses):(vm_classes):(vmclasses):(top_srcdir):$(top_srcdir)/external/w3c_dom:$(top_srcdir)/external/sax:$(top_srcdir)/external/relaxngDatatype:$(top_srcdir)/external/jsr166:.:$(USER_CLASSLIB):$(PATH_TO_ESCHER):$(gcj_tools_classpath)

We purposely avoid putting the tools classes into the core class path. This avoids any chance of a dependency on tools stuff by the core; this would be bad due to the use of ASM in the tools.

I wonder if we could fix this by putting the new tool code into standard.omit, and then compile it separately using a special rule of some kind, with a classpath pointing to the tools zip.

David> + if (rest.length != 1) David> + { David> + optionParser.printHelp(); David> + System.exit(1); David> + }

It is somewhat better to put checking code like this into a validate() method which throws OptionException. This yields more "GNU like" output.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]