HotSpot Virtual Machine 翻译 2 Compiler Control

Compiler Control provides a way to control Java Virtual Machine (JVM) compilation through compiler directive options. The level of control is runtime-manageable and method specific.

编译器控制通过编译器指令选项提供了一种方式来控制Java虚拟机的编译。控制级别是运行时管理的并且是特定于方法的。

 

A compiler directive is an instruction that tells the JVM how compilation should occur. A directive provides method-context precision in controlling the compilation process. You can use directives to write small, contained, JVM compiler tests that can run without restarting the entire JVM. You can also use directives to create workarounds for bugs, in the JVM compilers.

一条编译器指令就是一条命令,告诉JVM编译应该如何发生。指令在控制编译过程中提供了方法上下文精确度。你可以使用指令来写小的,被包含的,JVM编译器测试,它们可以无需重启整个JVM而运行。你也可以在JVM编译器中使用指令来创建 bug 变通方法。

 

You can specify a file that contains compiler directives when you start a program through the command line. You can also add or remove directives from an already running program by using diagnostic commands.

当你通过命令行启动一个程序的时候,你可以指定一个包含编译器指令的文件。你也可以使用诊断命令从一个已经运行的程序中添加或者移除指令。

 

Compiler Control supersedes and is backward compatible with CompileCommand.

编译器控制可以使用编译命令代替和向后兼容。

 

Topics:

 

来自 <https://docs.oracle.com/javase/10/vm/compiler-control1.htm#JSJVM-GUID-94AD8194-786A-4F19-BFFF-278F8E237F3A>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值