An object release method, apparatus, device and storage medium

An object and class object technology, applied in the computer field, can solve problems such as memory leaks, affect the normal operation of applications, and the system cannot automatically reclaim memory, so as to ensure normal operation and avoid memory leaks.

Active Publication Date: 2022-07-05
武汉斗鱼鱼乐网络科技有限公司
View PDF15 Cites 0 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
  • An object release method, apparatus, device and storage medium
  • An object release method, apparatus, device and storage medium
  • An object release method, apparatus, device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] figure 1 This is a flowchart of an object release method provided in Embodiment 1 of the present invention, and this embodiment is applicable to the case of releasing an instance object created in a component. The method may be performed by an object releasing device, which may be implemented in software and / or hardware, and integrated into a device equipped with an Android system, such as a smart phone, tablet computer, smart TV, or smart terminal such as a laptop. The method specifically includes the following steps:

[0024] S110. 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 compare the instance object and the object identifier of the instance object Store to the target location corresponding to the component identifier in the data cache objec...

Embodiment 2

[0048] figure 2 This is a flowchart of an object release method provided in Embodiment 2 of the present invention. Based on the foregoing embodiments, this embodiment describes in detail the internal operations of the data navigation function. The explanations of the terms that are the same as or corresponding to the above-mentioned embodiments are not repeated here.

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

[0050] The data navigation function can determine the instance object corresponding to the class object through the following steps S210-S260, and store the instance object and the object identifier of the instance object in the target location corresponding to the component identifier in the data cache object.

[0051] S210: Obtain an inner-layer collection object corresponding to the component identifier in the data cache object by calling the inner-layer collection object obta...

Embodiment 3

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

[0072] The data navigation module 310 is configured 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 assign the instance The object identifiers of the object and the instance object are stored at the target location corresponding to the component identifier in the data cache object; the object release module 320 is used to call the data management object by using the component identifier as a function input parameter w...

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 present invention discloses an object release method, device, device and storage medium. The method includes: using the component identifier of the component and the class object of the class class type in the component as function input parameters, and calling the data in the data management object. The navigation function determines the instance object corresponding to the class object, and stores the instance object and the object identifier of the instance object to the target location corresponding to the component identifier in the data cache object; when the component destruction operation of the component is detected, the component identifier is used as a function Input parameters, call the data release function in the data management object, and release the component 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 solutions of the embodiments of the present invention, the instant release of the instance object can be realized, the problem of memory leakage can be effectively avoided, and the normal operation of the application program can be ensured.

Description

technical field [0001] Embodiments of the present invention relate to computer technologies, and in particular, to an object release method, apparatus, device, and storage medium. Background technique [0002] With the rapid development of computer technology, various application programs (APPs) 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, the application program developed based on the Android system usually directly uses the new keyword to perform the instantiation operation to create the instance object required in the component, and when each function in the component needs to use the instance object, it will To create, there will be a large number of instance objects. However, there is no ma...

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
Patent Type & Authority Patents(China)
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