The feature even supports integration with runtime bytecode modification, which this article discusses later.
这个特性甚至支持与运行时字节码修改进行集成,这将在本文 后面 讨论。
Indeed, if the bytecode modification is expensive, caching the modified classes has an even greater benefit, as the transformation only ever needs to be performed once.
实际上,如果字节码修改的开销很大,那么对经过修改的类进行缓存有很大的好处,因为变换只需要执行一次。
Thus, it is always more efficient to use the modified suboption. Note that this is only possible because the JVM knows that bytecode modification is imminent because of the presence of the JVMTI agent.
Runtime bytecode modification Runtime bytecode modification is becoming a popular means of instrumenting behaviour into Java classes.
运行时字节码修改正在成为将功能加入 Java 类的流行方法。
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.