Patents
US 6,507,946 B2#834302 Most CitedExpiredUnited States (USPTO)Utility

Process and system for Java virtual method invocation

53Forward Citations (#834302 Global)
2.3/yrCitation Velocity (#1555385 Global)
9.24Citation PageRank (#1209112 Global)
15Prior Art Cited
3Claims (1 Indep. · 2 Dep.)
0Drawings / Sheets

Abstract

A process and system for optimizing an invocation of a method is provided. A determination is made to compile a calling method, and a call to a callee method is detected within the first method. The callee method may be a non-final, virtual method, and a determination may be made that the callee method has not been previously overridden. The callee method is then inlined within the first method. In addition, no conditional statements are inserted into the calling method along with the inlined method. The determination to compile and optimize these methods may be made by a just-in-time compiler, and if the methods are Java methods, then a Java just-in-time compiler performs the optimization process. If a determination is made to load a class that contains a method that overrides the callee method, then the calling method is recompiled or patched.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 53.

Claims (3 — 1 Independent, 2 Dependent)

  1. Claim 1Independent Claim

    A process for optimizing an invocation of a method, the process comprising the computer-implemented steps of: in response to a determination to compile a first method, detecting an invocation of a second method by the first method; inlining the second method in the first method without a conditional statement in the first method for conditional execution of the inlined second method; and in response to a determination to load a class comprising a third method that overrides the second method, performing one of patching the first method and recompiling the first method, wherein the first method

  2. Claim 2Depends on #1

    The process of claim 1 wherein the second method is a non-final, virtual method.

  3. Claim 3Depends on #1

    The process of claim 1 further comp

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (15)

PatentTitleYearCitations
US 4,989,132 AObject-oriented, logic, and database programming tool with garbage collection1991281
US 5,230,050 AMethod of recompiling a program by using result of previous compilation199388
US 5,613,120 ASystem and method for enabling, without recompilation, modification of class definitions and implementations in an object-oriented computer program1997108
US 5,950,003 AProfile instrumentation method and profile data collection method1999176
US 5,970,249 AMethod and apparatus for performing byte-code optimization during pauses199953
US 6,026,485 AInstruction folding for a stack-based machine2000191
US 6,041,179 AObject oriented dispatch optimization200088
US 6,072,951 AProfile driven optimization of frequently executed paths with inlining of code fragment (one or more lines of code from a child procedure to a parent procedure)200069
US 6,101,326 AMethod and apparatus for frame elimination for simple procedures with tail calls200020
US 6,161,217 AAccurate method for inlining virtual calls200050
US 6,195,793 B1Method and computer program product for adaptive inlining in a computer system200137
US 6,199,201 B1Software constructs that facilitate partial evaluation of source code200124
US 6,223,340 B1Method for directly inlining virtual calls without on-stack replacement200151
US 6,237,141 B1Method and apparatus for dynamically optimizing byte-coded programs200167
US 6,401,137 B1Method, apparatus, and article of manufacture for processing a virtual call in a multi-threaded program200212

Non-Patent Literature (3)

  • Title: Debugging Optimized Code with Dynamic Deoptimization, author: Holzle et al, ACM, 1992.*
  • Title: Efficient Dynamic Dispatch without Virtual Function Tables. The SmallEiffel Compiler, author: Zendra et al, ACM, 1997.*
  • Titlel The Jalapeno Dynamic Optimizing Compiler for Java TM, author: Burke et al, ACM, Jun. 1999.