Help with performance issues.

Tom Tromey tromey@redhat.com
Mon Jul 30 09:13:00 GMT 2001


>>>>> "Hans" == Boehm, Hans <hans_boehm@hp.com> writes:

Hans> Is there any reason to call _Jv_InitClass on bultin classes like
Hans> java.lang.Math?

The class has to be initialized.  So we must call _Jv_InitClass for it
at some point.

However, for certain classes it would be reasonable to explicitly
initialize them when starting the runtime, and have the compiler know
not to emit init calls for those classes.

Looking at java.lang.Math, I don't see anything in there really
requiring initialization.  In cases like this it would be reasonable
for the compiler to emit the class pre-initialized, and then omit any
_Jv_InitClass calls forit.

Tom



More information about the Java mailing list