首页> 外国专利> Method and apparatus to facilitate sharing optimized instruction code in a multitasking virtual machine

Method and apparatus to facilitate sharing optimized instruction code in a multitasking virtual machine

机译:促进在多任务虚拟机中共享优化指令代码的方法和装置

摘要

A method is provided that enables native code, dynamically compiled from platform-independent code by one task of a multitasking virtual machine, to be used by other tasks. The system interprets the platform-independent code of a method for a threshold number of interpretations, and then produces class initialization dependent (CID) native code. The runtime of the system guarantees that a task uses CID code of a method only when all of the classes of an initialized set associated with the CID code have been initialized by the task, and otherwise, interprets the platform-independent code of the method. This allows the compiler to avoid generating class initialization barriers for classes from the initialized set. After a threshold number of failures to execute the CID code of a method, task re-entrant code is generated to replace the interpretation of its platform-independent code.
机译:提供了一种方法,该方法可以使本机代码由多任务虚拟机的一个任务从与平台无关的代码动态编译而来的其他任务使用。系统为阈值数量的解释来解释方法的与平台无关的代码,然后生成依赖于类初始化的(CID)本机代码。系统的运行时确保仅当任务已初始化与CID代码关联的所有初始化集的所有类时,任务才使用该方法的CID代码,否则,将解释该方法的平台无关代码。这使编译器可以避免为初始化集中的类生成类初始化障碍。在执行方法的CID代码失败的阈值数量之后,将生成任务重入代码以替换其平台无关代码的解释。

著录项

  • 公开/公告号EP1241569A2

    专利类型

  • 公开/公告日2002-09-18

    原文格式PDF

  • 申请/专利权人 SUN MICROSYSTEMS INC.;

    申请/专利号EP20020251814

  • 发明设计人 CZAJKOWSKI GRZEGORZ J.;DAYNES LAURENT P.;

    申请日2002-03-14

  • 分类号G06F9/44;G06F9/45;

  • 国家 EP

  • 入库时间 2022-08-22 00:32:37

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号