首页> 外国专利> Methods for sharing conditionally across class loaders dynamically compiled code

Methods for sharing conditionally across class loaders dynamically compiled code

机译:在类加载器之间动态共享代码进行有条件共享的方法

摘要

A method for conditionally sharing dynamically compiled code between different class loaders is provided. In this method, bytecodes of a first class type are compiled into a compiled code if the bytecodes have not been compiled. The locations of sequence of instructions in the compiled code that are loader dependent are then recorded. Thereafter, the loader dependencies in the compiled code are compared to determine whether the compiled code can be used by a method of a second class type. If the loader dependencies of the second class type are different from the loader dependencies of the first class type, the compiled code for the method of the first class type is cloned. Subsequently, portions of the cloned code that are loader dependent are modified to enable the method of the second class type to use the cloned code.
机译:提供了一种用于在不同的类加载器之间有条件地共享动态编译的代码的方法。在该方法中,如果未编译字节码,则将第一类类型的字节码编译为编译码。然后记录编译器代码中与加载程序相关的指令序列的位置。此后,比较编译代码中的加载程序依赖性,以确定第二类类型的方法是否可以使用编译代码。如果第二类类型的加载器依赖项与第一类类型的加载器依赖项不同,则将克隆第一类类型的方法的已编译代码。随后,修改克隆代码的依赖于加载程序的部分,以使第二类类型的方法能够使用克隆代码。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号