Memory management method and device

A memory management and memory technology, applied in the computer field, can solve the problems of memory resource failure and waste of memory resources, etc.

Pending Publication Date: 2020-10-02
HUAWEI TECH CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

due to figure 1 In the reference ring shown, each object refers to each other, therefore, the reference count value of each object in the reference ring is at least 1, a

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
  • Memory management method and device
  • Memory management method and device
  • Memory management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0125] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings and specific implementation methods. In the following, some terms used in the embodiments of the present application are explained, so as to facilitate the understanding of those skilled in the art.

[0126] 1) A computing device is also called an electronic device, and the computing device may specifically be a terminal device or a server-type terminal device. Specifically, the terminal device may be any computer system or device among various types of computer systems or devices that are mobile or portable and perform wireless communication. Examples may include mobile phones or smart phones (such as iPhone TM , based on Android TM phones), portable gaming devices (e.g., Nintendo DS TM 、PlayStation P...

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 invention discloses a memory management method and a memory management device, which are used for recovering memory occupied by an object in a reference ring. When the method is used for garbage collection, firstly, stored information of a first reference ring is obtained, the first reference ring is a circular reference formed by multiple objects, and the information of the first reference ring comprises the multiple objects in the first reference ring and reference relations among the multiple objects; secondly, it is determined that a second reference ring exists, information of the second reference ring is matched with information of the first reference ring, and the information of the second reference ring comprises multiple objects in the second reference ring and reference relations among the multiple objects; and then recovering the memory occupied by the plurality of objects in the second reference ring. Through a mode of matching the information of the reference ring, therecovery process of the reference ring is realized, and the problem of memory resource waste caused by incapability of recovering the reference ring can be avoided.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a memory management method and device. Background technique [0002] Garbage collection is a mechanism in computer technology for automatic management of computer memory. Its main idea is: when an application program is running on the computer, there will be an object in the application program that references another object (this object also may be referred to as in-memory objects or nodes), and each object takes up memory on the computer. If an object is no longer needed, that is to say, the object is not referenced by any other object, the object should be released so that the memory occupied by the object can be used by other objects to achieve the effect of automatically reclaiming memory resources . [0003] Currently, a commonly used technical solution for implementing garbage collection is a reference counting (reference counting, RC) algorithm. The RC algo...

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/50G06F9/455
CPCG06F9/5022G06F9/45558G06F2009/45583G06F9/4488G06F9/45533G06F12/0261G06F9/5016G06F12/0238G06F12/0253
Inventor 施慧丁阳张魁王成源王超
Owner HUAWEI TECH CO LTD
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