This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
ClassLoader initialization in _Jv_RunMain
- From: Bryce McKinlay <bryce at mckinlay dot net dot nz>
- To: GCJ Java <java at gcc dot gnu dot org>
- Date: Mon, 10 Nov 2003 17:45:37 +1300
- Subject: ClassLoader initialization in _Jv_RunMain
Does anyone recall why this code was added to _Jv_RunMain() ?
// We have to initialize this fairly early, to avoid circular
// class initialization. In particular we want to start the
// initialization of ClassLoader before we start the
// initialization of VMClassLoader.
_Jv_InitClass (&java::lang::ClassLoader::class$);
The ClassLoader static initializer runs a whole lot of code, and we are
running it before (eg) we have attached to the main thread, which is
problematic. Removing it doesn't seem to have had any negative effect -
presumably ClassLoader would be the only place that refers to
VMClassLoader anyway, so VMClassLoader should never get initialized
first. Can we remove this?
Regards
Bryce.