classpath-patches
[Top][All Lists]
Advanced

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

RE: [cp-patches] [RFC/JDWP] ClassLoaderReferenceCommandSet


From: Jeroen Frijters
Subject: RE: [cp-patches] [RFC/JDWP] ClassLoaderReferenceCommandSet
Date: Tue, 9 Aug 2005 09:37:47 +0200

Archie Cobbs wrote:
> Aaron Luchko wrote:
> > There's only a single command which asks for a list of 
> every class the
> > ClassLoader has been requested to load. The first way to do 
> this is just
> > use a hook in the vm. I don't know enough with how ClassLoaders are
> > handled within the vm to know how easy this would be to implement.
> > 
> > The second method involves a patch to ClassLoader which 
> adds a single
> > variable loadRequests which will store every Class that is 
> requested to
> > be loaded.
> 
> I'd strongly vote for option #1, i.e., just ask the VM directly.
> VMs that want to support this stuff are going to have to implement
> a lot of other native methods too, and this one should be fairly easy.

I strongly agree with Archie. Also, approach #2 is incorrect, because
the classes that should be returned are the "classes for which this
class loader has been recorded as the initiating loader". The class
loader doesn't know whether it is the initiating loader or not, only the
VM knows this.

Regards,
Jeroen




reply via email to

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