×

Methods and systems for utilizing bytecode in an on-demand service environment including providing multi-tenant runtime environments and systems

  • US 9,996,323 B2
  • Filed: 02/09/2015
  • Issued: 06/12/2018
  • Est. Priority Date: 04/21/2010
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method for execution of code in a runtime environment, the method comprising:

  • receiving a request to execute code;

    retrieving source code corresponding to the code to be executed from a database, wherein the source code is stored as an abstract syntax tree (AST) that has been serialized into a byte stream in a general-purpose distributed memory caching system where type definitions have been stored as an AST representation of the type generated by a parser;

    compiling the retrieved source code to generate executable code;

    translating the executable code to bytecode;

    parsing the bytecode to find a selected portion of the bytecode to service a request;

    executing the selected bytecode in the runtime environment by utilizing parameter passing via stack windows, wherein stack and local variables for multiple methods are shared via a shared data structure and a window into the shared data structure is passed when a method is invoked;

    freeing memory used by the selected bytecode upon completion of the execution of the selected bytecode so that the selected bytecode is not preserved in the memory after execution of the bytecode.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×