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]
Other format: [Raw text]

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.



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