Patent · US Expired

Method and apparatus for dynamically optimizing byte-coded programs

US6237141A · kind A · utility

56Cited by
6References
27Claims
0Family size

Assignee

Inventors

Key dates

Filing dateAug 2, 1999
Grant dateMay 22, 2001
Priority date
Expiry dateAug 2, 2019

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F9/4552
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

Methods and apparatus for dynamically determining whether portions of code should be interpreted or compiled in order to optimize a software application during run-time are disclosed. According to one aspect of the present invention, computer-implemented method for run-time processing of a computer program which includes byte-codes arranged as a plurality of methods includes invoking a first method selected from the plurality of methods. Invoking the first selected method involves interpreting the first selected method. An invocation tracker which is arranged to track the number of invocations of the first selected method is updated, and a determination is made regarding when the invocation tracker indicates that the number of invocations of the first selected method exceeds a threshold value. The first selected method is compiled when it is determined that the invocation tracker indicates that the number of invocations of the first selected method exceeds a threshold value. This threshold value is periodically adjusted to keep the compilation and the interpretation overheads within acceptable ranges.

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.