This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Help with performance issues.
- To: "Boehm, Hans" <hans_boehm at hp dot com>
- Subject: Re: Help with performance issues.
- From: Tom Tromey <tromey at redhat dot com>
- Date: 30 Jul 2001 10:41:26 -0600
- Cc: "'Anthony Green'" <green at redhat dot com>, wjb at netpd dot com, java at gcc dot gnu dot org
- References: <140D21516EC2D3119EE7009027876644049B5F71@hplex1.hpl.hp.com>
- Reply-To: tromey at redhat dot com
>>>>> "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