This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: FYI: don't call getSystemClassLoader()
- From: Tom Tromey <tromey at redhat dot com>
- To: Bryce McKinlay <mckinlay at redhat dot com>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 10 Mar 2005 11:11:08 -0700
- Subject: Re: Patch: FYI: don't call getSystemClassLoader()
- References: <m3sm34ee42.fsf@localhost.localdomain><4230329E.7090405@redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "Bryce" == Bryce McKinlay <mckinlay@redhat.com> writes:
Bryce> Good idea. Note that there's already a
Bryce> "getSystemClassLoaderInternal()" in Class.h. We should probably try to
Bryce> standardize on one or the other (the field or the inlined accessor
Bryce> method).
Hmm, I only see this in VMClassLoader, and it isn't inlined.
I think that method is used in one particular place because it
initializes the system class loader as a side effect. These other
places don't want to do that. It is confusing though.
Tom