I am looking for a BCI (Bytecode Instrumentation) library for Java in C or C ++ for use in the JVMTI agent.
A better script would look like ASM or BCEL in pure C.
The closest thing I've found so far is just the java_crw_demo demo written by Kelly O'Hair a few years ago and used in Sun / Oracle Tutorials since then.
Do you know anything else?
Some justification: I create a toolkit to add the getter method to java.lang.Object and overload this getter in each direct subclass of Object . For this reason, I cannot use the Java agent. In addition, I would like to avoid the appearance of an irregular JVM to run the toolkit - for reasons of complexity and speed.
source share