Use of -noverify when launching java apps

前端 未结 6 1066
小鲜肉
小鲜肉 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:16

    Start up time used to be a bit of an issue. However, verifiers are now faster, as are processors. Code compiled with JDK6 javac will by default include extra information to make the verifier step faster. Apache Harmony just uses a much faster verification algorithm.

    Some very old versions of javac produced incorrect bytecode. Indeed the Sun PlugIn still includes fix-up code to make some broken class files verify.

提交回复
热议问题