Re: Bytecode Instrumentation and Class Loading.

2019-09-30 Thread Alan Bateman
On 30/09/2019 19:12, Sam Thomas wrote: Hi Michael, I saw this method, but was unsure if this method only looked for loaded classes in the bootstrap class loader or if it proceeded to try load the class. I saw this being used in the ClassLoader.loadClass and the code and comments was what made

Re: Bytecode Instrumentation and Class Loading.

2019-09-30 Thread Sam Thomas
el Rasmussen > *Cc:* serviceability-dev@openjdk.java.net < > serviceability-dev@openjdk.java.net>; daniel.daughe...@oracle.com < > daniel.daughe...@oracle.com> > *Subject:* Re: Bytecode Instrumentation and Class Loading. > > Hi Michael, > > Returning question:

Re: Bytecode Instrumentation and Class Loading.

2019-09-30 Thread Michael Rasmussen
: Bytecode Instrumentation and Class Loading. Hi Michael, Returning question: I understand that the method findLoadedClass is protected. But say it was public, how would you find out loaded classes on the bootstrap classloader? Since from instrumentation perspective when a loader is null its the

Re: Bytecode Instrumentation and Class Loading.

2019-09-25 Thread Sam Thomas
Hi Michael, Returning question: I understand that the method findLoadedClass is protected. But say it was public, how would you find out loaded classes on the bootstrap classloader? Since from instrumentation perspective when a loader is null its the bootstrap classloader. Thanks ./Sam On Fri,

Re: Bytecode Instrumentation and Class Loading.

2019-09-25 Thread Sam Thomas
cool thanks Thanks ./Sam On Fri, Sep 20, 2019 at 5:05 AM Michael Rasmussen < michael.rasmus...@roguewave.com> wrote: > On 9/18/19 2:47 PM, Sam Thomas wrote: > > Hi, > > > > I'm trying to understand if a class will load as soon as all the > transformers return. The aim is to get a class referenc

Re: Bytecode Instrumentation and Class Loading.

2019-09-20 Thread Michael Rasmussen
On 9/18/19 2:47 PM, Sam Thomas wrote: > Hi, > > I'm trying to understand if a class will load as soon as all the transformers > return. The aim is to get a class reference of a class I have seen in my > transformer. Short answer: no. Trying to define a class can cause other classes to try to be

Re: Bytecode Instrumentation and Class Loading.

2019-09-18 Thread Daniel D. Daugherty
Forwarding this to the serviceability-dev@... alias and Bcc'ing jdk-dev@... which is a really broad alias... Dan On 9/18/19 2:47 PM, Sam Thomas wrote: Hi, I'm trying to understand if a class will load as soon as all the transformers return. The aim is to get a class reference of a class I hav