编译器运行的次数很难预测,JVM按照自己的想法从解释代码切换到编译代码,而且在运行期间,相同的代码路径可能编译、重新编译不止一次。
The compiler runs at less predictable times, the JVM switches from interpreted to compiled code at will, and the same code path may be compiled and recompiled more than once during a run.
如果您使用此DTDecl,那么几乎所有浏览器都会切换到“标准”模式,即使是完整的HTML5,这通常更一致且更可预测。
If you use this DTDecl, then almost all browsers will switch to "standards" mode, which, even if not fully HTML5, is generally much more compliant and predictable.
与此类似,由父线程切换的 num_proc1 的值导致了克隆线程中的转移的错误预测。
Similarly, toggling the value of num_proc1 by the parent thread causes branch misprediction in the clone thread.
应用推荐