* 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
+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.
// 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')
/* 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. */
#include <java-cpool.h>
#include <java-interp.h>
+
\f
using namespace gcj;
+bool gcj::verbose_class_flag;
+
jclass
java::lang::Class::forName (jstring className, jboolean initialize,
java::lang::ClassLoader *loader)
throw except;
}
+ if (gcj::verbose_class_flag)
+ fprintf (stderr, "[Loaded %s]\n", (const char*)(name->data));
+
_Jv_MonitorEnter (this);
state = JV_STATE_DONE;
notifyAll ();