According to IBM it is possible to turn off the jit compiler使用 Compiler.disable() ,我在 stackoverflow 上读到这是不可能的(仅使用命令行参数 - How to check if the JIT compiler is off in Java )。哪种方法是正确的?
最佳答案
请注意,WebSphere Real Time 实际上是一种 IBM Java 虚拟机,与可供下载的标准 Oracle 虚拟机不同。
正确的方法取决于您实际使用的虚拟机:
如果您使用的是标准虚拟机,请使用命令行参数。
如果您确实使用WebSphere,请使用Compiler.disable()
。
关于java - 关闭 JIT 编译器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9497324/