classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cp-patches] Patch: support for reading directories viaURL.openConne


From: Jeroen Frijters
Subject: RE: [cp-patches] Patch: support for reading directories viaURL.openConnection()
Date: Fri, 10 Sep 2004 17:45:53 +0200

Archie Cobbs wrote:
> [ For the purpose of discussion imagine class A has an active use
>   of class B, and class B may or may not have a <clinit>. ]
> 
> It hasn't been implemented. But it's not quite that simple. If this
> were to be implemented, that introduces another dependency between
> the classes. The result is that if someone adds <clinit> to class
> B but class A does not change, then if A has this optimization, it
> will have to be regenerated even though it didn't change. So the
> "optimization" could actually slow things down dramatically. This
> is not an issue for a JIT compiler (which always generates code at
> runtime) but is for a WAT compiler where code generation at runtime
> is to be avoided. This is kindof a contrived example but an example
> nonetheless.

OK, so you're compiling classes independently ahead of time, but at
runtime they still have to be linked right? Wouldn't that also give you
an opportunity to insert the class init checks. In essence you're doing
the same thing as gjc is going to do with their new model and I'm sure
that they'll be optimizing <clinit>.

> I agree with the spirit of your point, my only request is that in
> general people keep the big picture in mind and try to avoid making
> assumptions about things based on limited experience.

It's unrealistic to expect everyone to understand all ins and outs of
every VM, so I more or less expect the VM maintainers to actively
monitor the Classpath discussion and jump in if something tends to go in
the wrong direction.

Regards,
Jeroen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]