Memory management method and apparatus, and electronic device

A memory management and shell technology, applied in the field of video playback, can solve problems such as memory leaks, and achieve the effect of solving memory leaks

Inactive Publication Date: 2018-01-05
WUHAN DOUYU NETWORK TECH CO LTD
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a memory management method, device, and electronic equipment, which avoids the problem that the listene

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

[0048] The terms "first", "second" and the like (if any) in the description and claims of the present invention and the above drawings are used to distinguish similar objects and not necessarily to describe a specific order or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances suc...

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

Embodiments of the invention disclose a memory management method and apparatus, and an electronic device. The method comprises the steps of obtaining a registration request of a first receiving objectas a strong reference object; converting the first receiving object into a second receiving object as a weak reference object, wherein the second receiving object is a receiving object after the first receiving object is wrapped with a weak reference shell; if the second receiving object does not exist in a preset receiving object set, adding the second receiving object to the receiving object set; and when memory resources are in shortage, recovering the first receiving object wrapped with the weak reference shell in the receiving object set. A monitor as a message receiving object is converted into the weak reference object; and when the memory resources are in shortage, the message receiving object can be recovered, so that the message receiving object not subjected to de-registrationstill can ensure that a system can perform memory recovery on the message receiving object at a moment, and the purpose of solving the problem of memory leakage is achieved.

Description

technical field [0001] The invention relates to the technical field of video playback, in particular to a memory management method, device and electronic equipment. Background technique [0002] In the development process of some video or live broadcast applications (Application, APP), we usually monitor some events, and need to pass the relevant information of clicking the send button to other business logic, in some display panels of these applications The solution for exposing information to the outside world is usually to use a listener to expose, that is to say, when the listener triggers a relevant signal, the trigger signal will be sent to the listener, and the signal forwarding is completed in this way. [0003] The implementation of monitoring in conventional solutions is usually a direct reference relationship, that is to say, the listener holds the reference of the listener, and when the signal is triggered, the listener forwards the signal to the listener through...

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/50
Inventor 张磊陈少杰张文明
Owner WUHAN DOUYU NETWORK 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