This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Help with performance issues.


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]