Method and device for storing and recycling JavaScript object
A technology of object storage and object recycling, which is applied in the field of memory management, and can solve the problems of increasing JavaScript-specific memory to general memory usage, digital TV middleware running unsmoothly, and not being recyclable, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0052] figure 1 It is a flow chart of a JavaScript object storage method provided by the embodiment of this application.
[0053] Such as figure 1 As shown, the method includes:
[0054] S101. Determine the JavaScript object generated by the JavaScript engine in the process of processing the JavaScript script;
[0055] S102. Determine whether the size of the JavaScript object reaches a preset object threshold; if it is determined that the size of the JavaScript object reaches the preset object threshold, perform step S103;
[0056] S103. Allocate a heap memory only for storing the JavaScript object from the general memory to the JavaScript-specific memory, and the heap memory is set with an exclusive flag;
[0057] Optionally, a size of heap memory only used to store the JavaScript object is allocated to the JavaScript dedicated memory from the general memory, so as to meet the storage requirement of the JavaScript object.
[0058] S104. Store the JavaScript object in the ...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com