Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for determining reference relationship of memory objects

A technology for determining relationships and memory, applied in the field of determining methods and devices for reference relationships of memory objects, capable of solving problems such as memory objects that cannot be destroyed, memory objects that cannot be destroyed in time, and memory objects that cannot be destroyed

Active Publication Date: 2021-10-15
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For a memory object, if it is referenced by other memory objects, the memory object will not be destroyed by the garbage collection mechanism GC
That is, the referenced memory object cannot be destroyed
For most applications on the market, due to imperfect code writing, there may be some reference relationships between memory objects that cannot be canceled in time, resulting in memory objects that cannot be destroyed in time

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
  • Method and device for determining reference relationship of memory objects
  • Method and device for determining reference relationship of memory objects
  • Method and device for determining reference relationship of memory objects

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0033] The embodiment of the present application provides a method for determining the reference relationship of memory objects, which can obtain the memory snapshot information at the target time point during the running process of the target application. The memory snapshot information includes the value and address of the memory object, and then reference B based on the memory object A In the case of a memory object, the value of the A memory object contains the address of the B m...

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

This application discloses a method and device for determining the reference relationship of memory objects. This application can obtain the memory snapshot information at the target time point during the running of the target application. The memory snapshot information includes the value and address of the memory object, and then based on A memory object When referencing the B memory object, the value of the A memory object contains the address of the B memory object. Match the value of each memory object in the memory snapshot information with the addresses of other memory objects in the memory snapshot information. According to the matching result Determine the reference relationship between each memory object. By determining the reference relationship between each memory object, it can help developers find the essential reason why the redundant memory objects are not destroyed, cancel the redundant reference relationship at the code layer, and optimize the code.

Description

technical field [0001] The present application relates to the technical field of memory detection, and more specifically, to a method and device for determining a memory object reference relationship. Background technique [0002] With the development of Internet technology, various types of applications have sprung up, providing users with diversified network services, such as video services, game services, webcast services, etc., greatly enriching users' lives. [0003] The application will dynamically apply for memory space during the running process, and as the application process runs, the applied memory space should be released in time if it is no longer used, so as to avoid the infinite growth of application memory and memory leaks. For a memory object, if it is referenced by other memory objects, the memory object cannot be destroyed by the garbage collection mechanism GC. That is, the referenced memory object cannot be destroyed. For most applications on the marke...

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): G06F12/02
CPCG06F12/023
Inventor 何纯魏学峰徐森薛阳高文
Owner TENCENT TECH (SHENZHEN) CO LTD