Object release method and device, equipment, and storage medium

An object and object-like technology, applied in the computer field, can solve problems such as memory leaks, affecting the normal operation of applications, and the inability of the system to automatically reclaim memory.

Active Publication Date: 2019-11-12
武汉斗鱼鱼乐网络科技有限公司
View PDF15 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, there is no management operation for releasing the created instance objects in the prior art, so that the system cannot automatically reclaim the memory allocated to the instance objects, which will cause a large number of memory leaks when there are too many instance objects, and then affect the application. normal operation of

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Object release method and device, equipment, and storage medium
  • Object release method and device, equipment, and storage medium
  • Object release method and device, equipment, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] figure 1 It is a flow chart of an object release method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of releasing instance objects created in components. The method can be executed by the object release device, which can be realized by software and / or hardware, and integrated in devices equipped with Android system, such as intelligent terminals such as smart phones, tablet computers, smart TVs or notebook computers. The method specifically includes the following steps:

[0024] S110. Use the component identification of the component and the class object of the class class type in the component as function input parameters, call the data navigation function in the data management object, determine the instance object corresponding to the class object, and identify the instance object and the instance object Store to the target location corresponding to the component ID in the data cache object.

[0025] Wherein, a compon...

Embodiment 2

[0048] figure 2 It is a flow chart of an object release method provided by Embodiment 2 of the present invention. This embodiment describes in detail the internal operation of the data navigation function on the basis of the above embodiments. The explanations of terms that are the same as or corresponding to those in the foregoing embodiments are not repeated here.

[0049] see figure 2 , the object release method provided in this embodiment specifically includes the following steps:

[0050] Wherein, the data navigation function can realize the function of determining the instance object corresponding to the class object through the following steps S210-S260, and storing the instance object and the object identifier of the instance object to the target position corresponding to the component identifier in the data cache object.

[0051] S210. Obtain the inner collection object corresponding to the component identifier in the data cache object by calling the inn...

Embodiment 3

[0071] image 3 A schematic structural diagram of an object release device provided by Embodiment 3 of the present invention. This embodiment is applicable to the case of releasing an instance object created in a component. The device may specifically include: a data navigation module 310 and an object release module 320.

[0072] Among them, the data navigation module 310 is used to use the component identifier of the component and the class object of the class class type in the component as function input parameters, call the data navigation function in the data management object, determine the instance object corresponding to the class object, and convert the instance The object identification of the object and the instance object is stored in the target location corresponding to the component identification in the data cache object; the object release module 320 is used to use the component identification as a function input parameter to call the data management objec...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses an object release method and device, equipment and a storage medium. The method comprises the following steps: taking a component identifier of the componentand a class object of a class type in the component as function input parameters, calling a data navigation function in the data management object, determining an instance object corresponding to theclass object, and storing the instance object and an object identifier of the instance object to a target position corresponding to the component identifier in the data cache object; and when a component destruction operation of the component is detected, taking the component identifier as a function input parameter, calling a data release function in the data management object, and releasing thecomponent identifier stored in the data cache object, the instance object corresponding to the component identifier and the object identifier of the instance object. Through the technical scheme of the embodiment of the invention, the instance object can be released in time, the problem of memory leakage is effectively avoided, and the normal operation of the application program is ensured.

Description

technical field [0001] The embodiments of the present invention relate to computer technology, and in particular to an object release method, device, equipment and storage medium. Background technique [0002] With the rapid development of computer technology, various application programs (Application) are developed and applied in terminal devices to meet the increasing demands of users. In each application, it is often necessary to create various components and instance objects in the components to realize functions such as page display, interaction, download, and status query of the application. [0003] In the prior art, in the application program developed based on the Android system, the instantiation operation is usually performed directly by using the new keyword to create the instance object required in the component, and when each function in the component needs to use the instance object, it will Create, so there will be a large number of instance objects. Howeve...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/448G06F11/36
CPCG06F9/4488G06F11/3636
Inventor 张磊
Owner 武汉斗鱼鱼乐网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products