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
This commit is contained in:
parent
6b70713d28
commit
0bd241538e
4 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
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 ();
|
||||
|
|
Loading…
Add table
Reference in a new issue