×

Hash table dispatch mechanism for interface methods

  • US 6,862,728 B2
  • Filed: 05/16/2001
  • Issued: 03/01/2005
  • Est. Priority Date: 11/16/1998
  • Status: Expired due to Term
First Claim
Patent Images

1. A method of reducing the dispatch times of a virtual dispatch during the execution of an object-oriented language program in a system having a host machine and a virtual machine, the program having interface Methods and functions including individual functions and associated functions associated with the interface Methods, the method comprising:

  • providing hierarchical relationships between functions represented by super class and sub class definitions of the functions, wherein super class functions have super class attributes, and sub class functions have inherited sub class attributes inherited from a corresponding super class function and non inherited class attributes not inherited from a super class function;

    creating a plurality of dispatch tables including interface Methods and individual functions having both inherited attributes and non inherited attributes;

    creating an interface hash table for a dispatch table, the interface hash table having a pointer as an index for a selected one of an interface Method or an individual function and recovery and search routines for recovering from a hash table collision and searching a list of functions;

    the dispatch table receiving and re-routing the call to the interface hash table during a call of a virtual dispatch requiring an interface Method or requiring an individual function;

    determining whether a collision has occurred in the hash table in response to the call and selectively executing the recovery routine or the fallback routine in response to the collision determination;

    the interface hash table selecting one of the interface Methods or one of the individual functions to provide a selected routine; and

    executing the selected routine in accordance with both the inherited attributes and the non inherited attributes.

View all claims
  • 9 Assignments
Timeline View
Assignment View
    ×
    ×