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: invocation interface


Tom Tromey wrote:
> 
> Bryce> This interface is pretty much what I've had in mind.  Note also
> Bryce> that there are runtime initialization functions which need to
> Bryce> be run for GC initialization etc, so AttachCurrentThread needs
> Bryce> to check if the runtime has been initialized yet and do so if
> Bryce> neccessary.
> 
> I think this will happen as a side effect of simply loading the .so,
> as all the static constructors run to register classes.

>From other comments here I'd guessed static initializers are best
avoided. Registering classes is OK, but the bulk of VM initialization
ought to wait at least until main() has run, so command-line arguments
are available.

Jeff


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