Commit 0bd24153 by Per Bothner Committed by Per Bothner

jvm.h (namespace jcj): Declare verbose_class_flag


	* include/jvm.h (namespace jcj):  Declare verbose_class_flag
	* java/lang/natClass.cc (gcj::verbose_class_flag):  New variable.
	(initializeClass):  If verbose_class_flag, print message.
	* gij.cc (main):  Handle -verbose:class flag.

From-SVN: r84242
parent 6b70713d
2004-07-07 Per Bothner <per@bothner.com>
* include/jvm.h (namespace jcj): Declare verbose_class_flag
* java/lang/natClass.cc (gcj::verbose_class_flag): New variable.
(initializeClass): If verbose_class_flag, print message.
* gij.cc (main): Handle -verbose:class flag.
2004-07-07 Andreas Tobler <a.tobler@schweiz.ch>
* configure.host: Enable hash synchronization on Darwin.
......
......@@ -133,6 +133,8 @@ main (int argc, const char **argv)
// correct behavior.
_Jv_Jar_Class_Path = argv[++i];
}
else if (! strcmp (arg, "-verbose:class"))
gcj::verbose_class_flag = true;
else if (arg[1] == 'X')
{
if (arg[2] == '\0')
......
......@@ -238,6 +238,9 @@ namespace gcj
/* Set to true by _Jv_CreateJavaVM. */
extern bool runtimeInitialized;
/* Print out class names as they are initialized. */
extern bool verbose_class_flag;
}
/* Type of pointer used as finalizer. */
......
......@@ -59,10 +59,13 @@ details. */
#include <java-cpool.h>
#include <java-interp.h>
using namespace gcj;
bool gcj::verbose_class_flag;
jclass
java::lang::Class::forName (jstring className, jboolean initialize,
java::lang::ClassLoader *loader)
......@@ -828,6 +831,9 @@ java::lang::Class::initializeClass (void)
throw except;
}
if (gcj::verbose_class_flag)
fprintf (stderr, "[Loaded %s]\n", (const char*)(name->data));
_Jv_MonitorEnter (this);
state = JV_STATE_DONE;
notifyAll ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment