发明名称 EFFECTIVE MEMORY MANAGEMENT FOR HOST OBJECTS IN A RUNTIME ENVIRONMENT WITH EMBEDDED GARBAGE-COLLECTED BASED DYNAMIC LANGUAGE
摘要 A system for improving memory management in a hybrid programming environment where a server program receives a request to execute a script. The server program instructs an embedded script engine to execute the script. The server program creates a session manager to manage objects associated with the script. The objects are comprised of host objects that reside in a program memory space, and script objects that reside in an embedded script engine memory space. The session manager creates a session associated with the execution of the script, and associated objects created during the execution of the script. Upon receiving notification of completion and/or termination of the execution of the script, the server program requests invalidation and/or deletion of the objects associated with the session. Deletion of host objects immediately releases memory in the program memory space without waiting for the scheduled garbage collection.
申请公布号 US2016283437(A1) 申请公布日期 2016.09.29
申请号 US201514667864 申请日期 2015.03.25
申请人 International Business Machines Corporation 发明人 Ffrench Tony;Huang Libra C.;Juang Mei-Jiuang;Smith Timothy J.;Su Chih-Wen;Wang Yi-hong
分类号 G06F15/167;H04L29/08 主分类号 G06F15/167
代理机构 代理人
主权项 1. A method of improving memory management in a hybrid programming environment, the method comprising: receiving, by a server program, a request to execute a script, wherein the server program instructs an embedded script engine to execute the script; creating, by the server program, a session manager 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, and 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 the server program, at least one of invalidation and deletion of the objects associated with the session, wherein immediate deletion of host objects immediately releases memory in the program memory space without waiting for a scheduled memory management mechanism performed by the embedded script engine.
地址 Armonk NY US