Use of -noverify when launching java apps

前端 未结 6 1067
小鲜肉
小鲜肉 2020-12-29 02:06

I have seen many apps that take instrument classes and take -javaagent as a param when loading also put a -noverify to the command line.

Th

6条回答
  •  滥情空心
    2020-12-29 02:34

    Debugging! In fact that's what I'm doing now, and how I stumbled across this question. At Terracotta we do a lot of bytecode instrumentation, and sometimes it helps to turn off the verifier as we debug our class adapters, so we can see where exactly they fail at runtime.

    You're right, we want the verifier to remain on in production.

提交回复
热议问题