This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: PATCH to add -verbose:class flag
- From: Tom Tromey <tromey at redhat dot com>
- To: Per Bothner <per at bothner dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: 28 Jun 2004 15:27:24 -0600
- Subject: Re: PATCH to add -verbose:class flag
- References: <40DB0DDB.8020804@bothner.com>
- Reply-to: tromey at redhat dot com
>>>>> "Per" == Per Bothner <per@bothner.com> writes:
Per> It is arguable that the declaration of verbose_class_flag should go
Per> into some header file, but I don't know which is preferred.
Could you put it in `namespace gcj'? We try to avoid globals with
non-gcj-specific names. Unfortunately we aren't super-consistent
about exactly what names we do choose...
The declaration could go in include/jvm.h (look for "namespace gcj").
The definition can go anywhere, eg where it is is fine.
Per> + if (verbose_class_flag)
Per> + fprintf (stderr, "[Loaded %s]\n", (const char*)(name->data));
This is sort of a misnomer since this code is actually only run during
class initialization. The class might have been loaded long before.
I'm not sure whether that little pedanticism matters? I didn't look
at what the JDK does.
Tom