Memory allocation code detection method, device, computer equipment and storage medium

A memory allocation and code detection technology, applied in the field of data processing, can solve problems such as excessive memory allocation operations and running stuck, achieving the effect of easy operation and avoiding incomplete detection.

Pending Publication Date: 2019-10-15
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] During the running of the application, if there are too many or too frequent memory allocation operations, garbage collection will be triggered, and garbage collection will cau

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 allocation code detection method, device, computer equipment and storage medium
  • Memory allocation code detection method, device, computer equipment and storage medium
  • Memory allocation code detection method, device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] During the running of the application, if there are too many or too frequent memory allocation operations, garbage collection will be triggered, and garbage collection will cause poor performance such as running freezes. Therefore, how to detect memory allocation in the application code Code is a technical problem that those skilled in the art need to solve. At present, since the source code including the memory allocation code is written in a high-level language, and using a high-level language to implement a function, such as implementing a memory allocation operation, the corresponding code writing rules are very diverse, and the same code writing rule may also It is applicable to a variety of different functions. In addition, the realization of a function will even call various packages, so that the source code part does not have the actual function code, that is, the code that actually implements the function is not directly displayed, so it is currently impossible ...

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 allocation code detection method, a memory allocation code detection device, computer equipment and a storage medium. According to the technical scheme, the method comprises the following steps that: the computer equipment acquires an intermediate language code of a to-be-detected application program code, determines that an instruction code is a target intermediate language code of a target instruction code in the to-be-detected intermediate language code, and finally determines the position information of the memory allocation code in the to-be-detected application program code by determining the position information of the source code corresponding to the target intermediate language code in the to-be-detected application program code. Therefore, according to the scheme, the position information of the memory allocation code in the to-be-detected application program can be determined through the target intermediate language code. Moreover, the memoryallocation code detection method provided by the invention does not need to run the application program and does not need to exhaust each operation condition of the application program. Therefore, the operation is simple and convenient. The problem of incomplete memory allocation code detection can also be avoided.

Description

technical field [0001] The present application relates to the technical field of data processing, and in particular to a memory allocation code detection method, device, computer equipment and storage medium. Background technique [0002] Applications usually use memory to store data when they are running. When the stored data is no longer used, the GC (Garbage Collection, garbage collection) mechanism will release the memory space occupied by these data to make this part of the memory space can continue to be used. [0003] During the running of the application, if there are too many or too frequent memory allocation operations, garbage collection will be triggered, and garbage collection will cause poor performance such as running freezes. Therefore, how to detect memory allocation in the application code Code is a technical problem that those skilled in the art need to solve. Contents of the invention [0004] In view of this, the present application provides a memory...

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): G06F11/36
CPCG06F11/366G06F11/3624Y02D10/00
Inventor 程耀
Owner TENCENT TECH (SHENZHEN) 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