classpath
[Top][All Lists]
Advanced

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

Re: ClassLoader.findLoadedClass (was: ServiceFactory)


From: Archie Cobbs
Subject: Re: ClassLoader.findLoadedClass (was: ServiceFactory)
Date: Tue, 23 Mar 2004 20:56:54 -0600 (CST)

David Holmes wrote:
> > Also: this discussion seems to imply that we require a native method
> > that findLoadedClass() can use to ask the VM to look for C in its internal
> > initiated types table associated with L.. is that correct?
> 
> As findLoadedClass is a final method in ClassLoader I consider its
> implementation part of the VM - as long as it and other parts of the VM use
> the same lookup table you can do whatever you like here. That said it seems
> to me that the lookup table defined in ClassLoader should be moved to
> VMClassLoader. That way we would have:
> 
>   ClassLoader.findLoadedClass(n) calls VMClassLoader.findLoadedClass(this,
> n)
> 
> and
> 
>   ClassLoader.defineClass calls VMClassLoader.defineClass(this, ...) and
> VMClassLoader.defineClass can then update the lookup table however it is
> implemented in that VM.
> 
> VMClassLoader can define a default mechanism using hashtables or just leave
> things native.
> 
> Or in simple words: move the lookup table out of ClassLoader into
> VMClassLoader.

Good.. that's what I was thinking too. Thanks for the clarification.

-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com




reply via email to

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