jvm - Does a java agent run in a separate thread? -


I think that I should know, but specified with a Java agent (-jawagent) run in a separate thread goes ? I've read it, but I want to make: Is it really block monitor those (who think that it is running in another thread and class load) or the JVM To solve this class load, there is no separate thread for this?)

Again, I think I should be able to understand it, but it would be good for me, I work very hard and mine The stem is a bit fried: P

Thanks!

Clasfail Tronsformr brought by the class loader article has you connected, by a small modification of the transformer To look like this:

  Changes the public byte [] (classloader loader, string className, class redefiningClass, ProtectionDomain domain, byte [] bytes) IllegalClassFormatException throws {new runtime exception ("Transformers Transformer Class: "+ Classname). Print Stackscress (System Out); Return bytes; }  

The production yields:

  java.lang.RuntimeException: MyMain on com.javalobby.tnt.instrument.SimpleTransformer.transform: transformers Class Conversion For sun.instrument.TransformerManager.transform (SimpleTransformer.java14) (unknown source) at sun.instrument.InstrumentationImpl.transform (unknown source) java.lang.ClassLoader.defineClass1 (native resident method) java.lang. On ClassLoader java.net.URLClassLoader.access $ at defineClassCond (java.lang.ClassLoader.defineClass (Unknown Source java.security.SecureClassLoader.defineClass on java.net.URLClassLoader.defineClass unknown source)) (Unknown Source) (Unknown Source) 000 java.net.URLClassLoader $ 1.run (unknown source) at java.lang.ClassLoader.loadClass java.security.AccessController.doPrivileged (native resident method) on java.net.URLClassLoader.findClass (unknown source) ) on (unknown source) JavaklangkClassLoaderkloadClass (unknown source on sun.misc.Launcher $ AppClassLoader.loadClass (unknown software Rce))  

Comments