On 1/22/16 7:29 AM, Alan Bateman wrote:
On 22/01/2016 14:00, Coleen Phillimore wrote:
Can you send the question again? I didn't see it. I also mostly
look at JVM code and rarely deal with the Java side.
The question was asked about ClassFileTransformer which is implemented
by the JPLIS agent via the JVM TI CFLH event. So I think the question
is really on whether this event can be posted for classes defined via
defineAnonymousClass. None of the standard APIs know about HotSpot
specific concepts like "host class" but maybe the host class defining
loader and PD can be used with this event. I don't know if this has
been explored elsewhere already.
-Alan.
Sounds like defineAnonymousClass() is somehow by-passing the placement
of the CFLH event poster.
I don't see any information here about which JDK version this issue
is being seen with. I suspect JDK8u, but that's just a guess...
Dan