cfk1996 commented on issue #320:
URL: https://github.com/apache/skywalking/issues/320#issuecomment-672748406


   
你好,我们现在有一种场景想要支持运行时增强,我们的项目支持线上热更新,比如最开始编译得到A.class,启动时被skywalking增强,运行的其实是A-sky.class。我们的热更新策略是基于修改过的java文件生成A1.class。然后用A1.class替换A.class,这在没有skywalking时是可以支持的,但是使用了skywalking导致内存里实际上是A-sky.class。会导致A1.class与A-sky.class差异巨大(A-sky.class增加了field和方法,或者修改了方法签名)而无法热更新。所以想到的方法是用A1.class传入jvm后再用skywalking增强下得到A1-sky.class,所以想要支持下运行时增强。
   或者您能想到其他方法吗,谢谢!


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to