Patent ID: 9747250
Date: 2017-08-29
CPC Classifications: G06F,H04L

Claim:
1. A computer-implemented method of using a session manager to improve memory management efficiency in a hybrid programming environment including both statically typed and dynamically typed programming languages, the computer-implemented method comprising: receiving, by a server program having an embedded script engine, a request to execute a script, whereupon the server program instructs the embedded script engine to execute the script, wherein the script is composed in a dynamically typed programming language that features automatic memory management provided by the embedded script engine, wherein the server program is developed using a statically typed programming language that does not feature any automatic memory management; creating, by the server program, the session manager, which is configured to provide manual memory management to manage objects associated with the execution of the script, wherein the objects are comprised of host objects and script objects, wherein the host objects reside in a program memory space, wherein the script objects reside in an embedded script engine memory space; creating, by the session manager, a session associated with the execution of the script, wherein objects created during the execution of the script are associated with the session; and upon receiving notification of at least one of completion and termination of the execution of the script, requesting, by one or more computer processors when executing the server program, at least one of invalidation and deletion of the objects associated with the session, wherein deletion of host objects causes the manual memory management of the session manager to release memory in the program memory space without awaiting the automatic memory management of the embedded script engine, thereby improving memory management efficiency in the hybrid programming environment relative to relying on the automatic memory management of the embedded script engine in an absence of the manual memory management of the session manager.