Invention Grant
- Patent Title: Dynamic code generation and memory management for component object model data constructs
-
Application No.: US15133998Application Date: 2016-04-20
-
Publication No.: US10248415B2Publication Date: 2019-04-02
- Inventor: Steven Lucco , Louis Lafreniere , Yong Qu
- Applicant: Microsoft Technology Licensing, LLC
- Applicant Address: US WA Redmond
- Assignee: Microsoft Technology Licensing, LLC
- Current Assignee: Microsoft Technology Licensing, LLC
- Current Assignee Address: US WA Redmond
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F8/75 ; G06F8/30 ; G06F9/50 ; G06F9/448

Abstract:
Dynamic code generation and memory management techniques are provided for component object model (COM) objects with corresponding representations in script code and native code. A browser component can receive script code including the code representing the COM object and a marshaling component is provided that marshals, based on a request for native code representing the COM object, the code representing the COM object to the native code based on a pre-constructed intermediate data structure. The pre-constructed intermediate data structure, such as a virtual table, is pre-constructed based on a dynamic type representation associated with a prototype of the COM object and cached for re-use by the marshaling component. Other embodiments provide finalizer support for memory management of COM objects having script and native world representations including an implementation of a two-phase commit protocol that enables efficient and conservative recycling of objects and associated memory.
Public/Granted literature
- US20160232002A1 DYNAMIC CODE GENERATION AND MEMORY MANAGEMENT FOR COMPONENT OBJECT MODEL DATA CONSTRUCTS Public/Granted day:2016-08-11
Information query