update doc.

pull/1844/head
hengyunabc 5 years ago
parent 38c02a2838
commit 61f3d9af1e

@ -9,6 +9,10 @@ Reference: [Instrumentation#redefineClasses](https://docs.oracle.com/javase/8/do
> The `reset` command is not valid for classes that have been processed by `redefine`. If you want to reset, you need `redefine` the original bytecode.
> The `redefine` command will conflict with the `jad`/`watch`/`trace`/`monitor`/`tt` commands. After executing `redefine`, if you execute the above mentioned command, the bytecode of the class will be reset.
> The reason is that in the JDK `redefine` and `retransform` are different mechanisms. When two mechanisms are both used to update the bytecode, only the last modified will take effect.
### Options
|Name|Specification|

@ -9,6 +9,9 @@ redefine
> `reset`命令对`redefine`的类无效。如果想重置,需要`redefine`原始的字节码。
> `redefine`命令和`jad`/`watch`/`trace`/`monitor`/`tt`等命令会冲突。执行完`redefine`之后,如果再执行上面提到的命令,则会把`redefine`的字节码重置。
> 原因是jdk本身redefine和Retransform是不同的机制同时使用两种机制来更新字节码只有最后修改的会生效。
### 参数说明
|参数名称|参数说明|

Loading…
Cancel
Save