CN108563507A - A kind of EMS memory management process, device, equipment and readable storage medium storing program for executing - Google Patents
A kind of EMS memory management process, device, equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN108563507A CN108563507A CN201810325884.6A CN201810325884A CN108563507A CN 108563507 A CN108563507 A CN 108563507A CN 201810325884 A CN201810325884 A CN 201810325884A CN 108563507 A CN108563507 A CN 108563507A
- Authority
- CN
- China
- Prior art keywords
- memory
- stack element
- object function
- memory management
- storehouse
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5022—Mechanisms to release resources
Abstract
The invention discloses a kind of EMS memory management process, and this approach includes the following steps:When the memory for getting object function transmission discharges request, the corresponding stack element of subfunction of object function and object function is searched in default storehouse;Discharge the corresponding memory of stack element found out.When getting memory release request, object function and the corresponding stack element of its subfunction can be found out in default storehouse.Then, the corresponding memory of the stack element found out is discharged.In this way, can reduce causes memory not discharge the probability for occupying memory for a long time always because expression is not known and discharges certain memory, memory overflow can be further reduced, memory usage is improved, further promotes computer performance.The invention also discloses a kind of memory management device, equipment and readable storage medium storing program for executing, have corresponding technique effect.
Description
Technical field
The present invention relates to computer application technology, more particularly to a kind of EMS memory management process, device, equipment and can
Read storage medium.
Background technology
In c language, obtained using memory allocation functions such as malloc (memory allocation, dynamic memory distribution)
It is the storage allocation from heap to take memory.Need programmer's manual releasing (bright such as at function ending from the memory distributed in heap
It really writes out or indicates the instruction of the release memory, or terminating memory in use, explicitly indicating that the request for discharging the memory).Such as
Fruit does not discharge, and Installed System Memory manager cannot recycle these heap memories automatically, these memories are just occupied always.If
Apply for heap memory always, without discharge, memory can fewer and fewer, it is evident that the result is that system it is slack-off or apply less than new
Heap memory.And excessive application heap memory, heap can be caused to be pressed quick-fried, memory overflow occur.
Existing, memory management module can simplify the process of above-mentioned application and release dynamics memory, be provided for programmer interior
Deposit tracking information.But when using these memory management modules, each memory is required for programmer explicitly to do when discharging
Go out the problems such as discharging.In this case, it can still result in heap memory not discharge or can not discharge, further result in Installed System Memory
Waste causes program operation speed to slow down the even serious consequences such as system crash.
In conclusion the problems such as how efficiently solving memory overflow, is that current those skilled in the art are badly in need of solving
Technical problem.
Invention content
The object of the present invention is to provide a kind of EMS memory management process, device, equipment and readable storage medium storing program for executing, to reduce memory
Leakage.
In order to solve the above technical problems, the present invention provides the following technical solutions:
A kind of EMS memory management process, including:
When the memory for getting object function transmission discharges request, the object function and institute are searched in default storehouse
State the corresponding stack element of subfunction of object function;
Discharge the corresponding memory of stack element found out.
Preferably, right respectively in the subfunction for searching the object function and the object function in default storehouse
Before the stack element answered, further include:
The corresponding stack element indentation of each function is preset in storehouse according to function call sequence.
Preferably, right respectively in the subfunction for searching the object function and the object function in default storehouse
Before the stack element answered, further include:
When receiving memory application request, search whether that there are the first stack of identical application location members in default storehouse
Element;
If it is, the context that the value of first stack element is asked as the memory application;
If it is not, then the context during the memory application is asked as the value of newly-built second stack element and is stored in institute
State default storehouse.
Preferably, right respectively in the subfunction for searching the object function and the object function in default storehouse
Before the stack element answered, further include:
Newly-built Key structural arrays, and the address of the corresponding heap memory of each thread is put as thread private data
Enter in the Key structural arrays.
Preferably, the corresponding memory of stack element that the release is found out, including:
The stack element found out is compared with the key in the Key structural arrays, release belongs to the stack of current thread
The corresponding memory of element.
A kind of memory management device, including:
Stack element searching module, for when the memory for getting object function transmission discharges request, in default storehouse
Search the corresponding stack element of subfunction of the object function and the object function;
Memory release module, for discharging the corresponding memory of stack element found out.
Preferably, further include:
Stack element memory module, for searching target corresponding with memory release request in default storehouse described
Before stack element, the corresponding stack element indentation of each function is preset in storehouse according to function call sequence.
Preferably, further include:
Key structural array creation modules, for corresponding with memory release request in the lookup in default storehouse
Target stack element before, create Key structural arrays, and private using the address of the corresponding heap memory of each thread as thread
There are data to be put into the Key structural arrays.
A kind of memory management equipment, including:
Memory, for storing computer program;
Processor, the step of above-mentioned EMS memory management process is realized when for executing the computer program.
A kind of readable storage medium storing program for executing is stored with computer program, the computer program quilt on the readable storage medium storing program for executing
The step of processor realizes above-mentioned EMS memory management process when executing.
The method provided using the embodiment of the present invention, when the memory for getting object function transmission discharges request,
The corresponding stack element of subfunction of object function and object function is searched in default storehouse;Discharge the stack element pair found out
The memory answered.Because there are call relation or nest relations between object function and its subfunction, when hard objectives function is corresponding
When memory is releasable, it is thus evident that the memory of subfunction can also discharge.In this case, for the subfunction of object function
Corresponding memory will without continuing waiting in the case of clearly specifying the instructions or requests for discharging the corresponding memory of the subfunction
It is discharged.That is, when getting memory release request, object function and its subfunction difference can be found out in default storehouse
Corresponding stack element.Then, the corresponding memory of the stack element found out is discharged.In this way, can reduce release is indicated because being not known
Certain memory and cause memory not discharge the probability for occupying memory for a long time always, can further reduce memory overflow, improve memory
Utilization rate further promotes computer performance.
In embodiments of the present invention, additionally provide memory management device corresponding with above-mentioned EMS memory management process, equipment and
Readable storage medium storing program for executing has above-mentioned technique effect, and details are not described herein.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow chart of embodiment one in EMS memory management process in the embodiment of the present invention;
Fig. 2 is a kind of flow chart of embodiment three in EMS memory management process in the embodiment of the present invention;
Fig. 3 is that the multithreading memory management in the embodiment of the present invention implements schematic diagram;
Fig. 4 is a kind of structural schematic diagram of memory management device in the embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of memory management equipment in the embodiment of the present invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Lower obtained every other embodiment, shall fall within the protection scope of the present invention.
Embodiment one:
Referring to FIG. 1, Fig. 1 is a kind of flow chart of EMS memory management process in the embodiment of the present invention, this method includes following
Step:
S101, when the memory for getting object function transmission discharges request, searched in default storehouse object function and
The corresponding stack element of subfunction of object function.
In the present embodiment, a storehouse can be pre-established, wherein storehouse is data item arranged in sequence, can only be one
Data structure is inserted into data item and is deleted at end (being known as stack top (top)), and stores stack element in default storehouse.
When getting memory release request, the sub- letter of the object function and object function can be searched in default storehouse
The corresponding stack element of number.Wherein, memory release request can also be the subfunction for carrying object function and object function
The request of information, that is to say, that object function and target letter can be found in default storehouse by memory release request
The stack element of several subfunctions.Wherein, the memory context (context) of stack element and function has correspondence, that is,
It says, the memory of the application of function can be determined by stack element.
The corresponding memory of stack element that S102, release are found out.
After finding object function stack element corresponding with the subfunction of object function, stack element and function can be passed through
Correspondence between memory context, it may be determined that go out the memory that the subfunction of object function and object function is respectively applied,
Then the memory is discharged.
The method provided using the embodiment of the present invention, when the memory for getting object function transmission discharges request,
The corresponding stack element of subfunction of object function and object function is searched in default storehouse;Discharge the stack element pair found out
The memory answered.Because there are call relation or nest relations between object function and its subfunction, when hard objectives function is corresponding
When memory is releasable, it is thus evident that the memory of subfunction can also discharge.In this case, for the subfunction of object function
Corresponding memory will without continuing waiting in the case of clearly specifying the instructions or requests for discharging the corresponding memory of the subfunction
It is discharged.That is, when getting memory release request, object function and its subfunction difference can be found out in default storehouse
Corresponding stack element.Then, the corresponding memory of the stack element found out is discharged.In this way, can reduce release is indicated because being not known
Certain memory and cause memory not discharge the probability for occupying memory for a long time always, can further reduce memory overflow, improve memory
Utilization rate further promotes computer performance.
It should be noted that being based on above-described embodiment one, the embodiment of the present invention additionally provides the scheme of being correspondingly improved.Rear
Involved in continuous embodiment with can mutually be referred between same steps or corresponding steps in above-described embodiment one, correspondingly technique effect
Also can be cross-referenced, it is no longer repeated one by one in improvement embodiment below.
Embodiment two:
Above-described embodiment one realizes the release management of memory, please refers to embodiment one, before executing step S101, is
It realizes memory applications management, following steps can also be performed:
Step 1: when receiving memory application request, search whether that there are identical application locations in default storehouse
First stack element;
Step 2: if it is, the context that the value of the first stack element is asked as memory application;
Step 3: if it is not, then the context during memory application is asked is as the value of newly-built second stack element and deposit
Default storehouse.
It is illustrated for ease of description, below combining above-mentioned steps.
When receiving memory application request, the memory application is searched in default storehouse first and ask the heap memory used
Address whether have existed, if it is present illustrating the corresponding memory space in the address of the heap memory by other function Shens
It please use.At this point, the context that can directly ask the first stack element of identical application location as this memory application.Such as
Fruit is not present, then the context in can directly asking this memory application is as the value of the second newly-built stack element and deposits
Enter in default storehouse.In this way, can realize that memory application, the name of stack element and memory context are deposited in default storehouse
Enter the operations such as default storehouse.To carry out subsequent memory release.
Preferably, the calling into line function for convenience, when being pressed into stack element into default storehouse, according further to function
Calling sequence presets the corresponding stack element indentation of each function in storehouse.I.e. the taking-up sequence and function of stack element calls
It is sequentially identical.And the different stack elements of correspondence of different functions context.In this way, can be protected in the calling process of function
Nest relation between function.Calling that will not be between interference function, does not interfere with final handling result.
Embodiment three:
It please refers to Fig.2 and Fig. 3, wherein Fig. 2 is a kind of flow chart of EMS memory management process in the embodiment of the present invention, and Fig. 3 is
Multithreading memory management in the embodiment of the present invention implements schematic diagram.The technology that the present embodiment is provided based on above-described embodiment
On the basis of scheme, it can also be achieved and the heap memory of multithreading is managed, this approach includes the following steps:
S301, newly-built Key structural arrays, and using the address of the corresponding heap memory of each thread as the privately owned number of thread
According to being put into Key structural arrays.
Wherein, the index of each element in Key structural arrays be pthread (POSIX threads, thread
POSIX standard) library provide thread specific data key (K).Using the address of the corresponding heap memory of each thread as thread
Private data is put into Key structural arrays.Private data because of the K in Key structural arrays as thread again, can be wired by institute
Journey accesses, you can storehouse is preset in the corresponding memory context deposits of the function of multiple threads, is then passed through when releasing memory
Key structural arrays further find the memory that need to be discharged, you can realize the memory management of multithreading.
S302, when the memory for getting object function transmission discharges request, searched in default storehouse object function and
The corresponding stack element of subfunction of object function.
S303, the stack element found out is compared with the key in Key structural arrays, release belongs to current thread
The corresponding memory of stack element.
After finding the stack element of subfunction of object function and object function, the stack element that can be found out is distinguished
It is compared with the key in Key structural arrays, it may be determined that belong to the stack element of current thread.Then release, which belongs to, works as front
The corresponding memory of stack element of journey.
In the present embodiment, the thread specific data part and threads store function provided by using the libraries pthread can
Realize the memory management of multithreading.In releasing memory, the stack element found and the key in Key structural arrays are compared
Compared with the stack element of non-present thread, that is, memory context can be retained, avoid carrying out generation interference to other.In promotion
The accuracy rate of management is deposited, the stability of stability and computer system that memory uses further is promoted.
For ease of those skilled in the art understand that or the EMS memory management process that is provided using the embodiment of the present invention, below with
For specific application scenarios, it is provided for the embodiments of the invention EMS memory management process and is described in detail.
It in practical applications, can be by EMS memory management process provided in an embodiment of the present invention and existing memory management module phase
In conjunction with, that is, existing memory management module is further encapsulated.It is interior when detection and leakage about memory overflow
Detailed output is deposited still to complete using existing memory management module.
First, the automatic storage data structure of the position of user's memory application is realized with storehouse.Title in storehouse
Source code lines position macro _ _ location__ as the title of storehouse using in C language, and the size of storehouse is automatic increase.In Shen
The element for whether having identical application location in storehouse please be first looked for when memory, by the context of memory application if not
As newly-built element value and it is pressed into storehouse, then uses the value for having element as memory application if there is existing element
context.Memory application, storehouse original book naming can be realized in encapsulation the latter function, and memory context is put into storehouse etc.
Operation.
In programmer's programming in use, different function application memories uses different memory context, and according to tune
It is pressed into storehouse with sequence.Need not end up specific releasing memory in each function in this way, only need in upper layer functions releasing memory,
At this point, the memory management module after encapsulated is searched the memory context of the function in stack and is discharged all positioned at this automatically
Stack element and all memory context on top, in this way this function all memories that its subfunction has been called are automatic
Release.
When realizing the support to multithreading, the thread specific data key and threads store that are provided using the libraries pthread
Function realizes that the multithreading of EMS memory management process is supported.Function prototype is predominantly 4 following:
int pthread_setspecific(pthread_key_t key,const void*value);
void*pthread_getspecific(pthread_key_t key);
int pthread_key_create(pthread_key_t*key,void(*destructor)(void*));
int pthread_key_delete(pthread_key_t*key)。
Private datas of the Key as thread, all threads can access after creating a Key, per thread
Different values is set, to determine the thread belonging to stack element.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of memory management device, is described below
Memory management device can correspond reference with above-described EMS memory management process.
Shown in Figure 4, which comprises the following modules:
Stack element searching module 101, for when get object function transmission memory discharge request when, in default storehouse
The middle corresponding stack element of subfunction for searching object function and object function;
Memory release module 102, for discharging the corresponding memory of stack element found out.
The device provided using the embodiment of the present invention, when the memory for getting object function transmission discharges request,
The corresponding stack element of subfunction of object function and object function is searched in default storehouse;Discharge the stack element pair found out
The memory answered.Because there are call relation or nest relations between object function and its subfunction, when hard objectives function is corresponding
When memory is releasable, it is thus evident that the memory of subfunction can also discharge.In this case, for the subfunction of object function
Corresponding memory will without continuing waiting in the case of clearly specifying the instructions or requests for discharging the corresponding memory of the subfunction
It is discharged.That is, when getting memory release request, object function and its subfunction difference can be found out in default storehouse
Corresponding stack element.Then, the corresponding memory of the stack element found out is discharged.In this way, can reduce release is indicated because being not known
Certain memory and cause memory not discharge the probability for occupying memory for a long time always, can further reduce memory overflow, improve memory
Utilization rate further promotes computer performance.
In a kind of specific implementation mode of the present invention, further include:
Stack element memory module, for searched in default storehouse with memory discharge the corresponding target stack element of request it
Before, the corresponding stack element indentation of each function is preset in storehouse according to function call sequence.
In a kind of specific implementation mode of the present invention, further include:
Memory application processing module, for searching target stack element corresponding with memory release request in default storehouse
Before, when receiving memory application request, the first stack element there are identical application location is searched whether in default storehouse;
If it is, the context that the value of the first stack element is asked as memory application;
If it is not, then the context during memory application is asked as the value of newly-built second stack element and is stored in default heap
Stack.
In a kind of specific implementation mode of the present invention, further include:
Key structural array creation modules, for searching goal stack corresponding with memory release request in default storehouse
Before element, Key structural arrays are created, and the address of the corresponding heap memory of each thread is put as thread private data
Enter in Key structural arrays.
In a kind of specific implementation mode of the present invention, memory release module 102, specifically for the stack element that will be found out
It is compared with the key in Key structural arrays, release belongs to the corresponding memory of stack element of current thread.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of memory management equipment, is described below
A kind of memory management equipment can correspond reference with a kind of above-described EMS memory management process.
Shown in Figure 5, which includes:
Memory D1, for storing computer program;
Processor D2, when for executing computer program the step of the EMS memory management process of realization above method embodiment.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of readable storage medium storing program for executing, is described below
A kind of readable storage medium storing program for executing can correspond reference with a kind of above-described EMS memory management process.
A kind of readable storage medium storing program for executing is stored with computer program on readable storage medium storing program for executing, and computer program is held by processor
The step of EMS memory management process of above method embodiment is realized when row.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with it is other
The difference of embodiment, just to refer each other for same or similar part between each embodiment.For being filled disclosed in embodiment
For setting, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is referring to method part
Explanation.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, depends on the specific application and design constraint of technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Principle and implementation of the present invention are described for specific case used herein, and above example is said
It is bright to be merely used to help understand technical scheme of the present invention and its core concept.It should be pointed out that for the common of the art
, without departing from the principle of the present invention, can be with several improvements and modifications are made to the present invention for technical staff, these
Improvement and modification are also fallen within the protection scope of the claims of the present invention.
Claims (10)
1. a kind of EMS memory management process, which is characterized in that including:
When the memory for getting object function transmission discharges request, the object function and the mesh are searched in default storehouse
The corresponding stack element of subfunction of scalar functions;
Discharge the corresponding memory of stack element found out.
2. EMS memory management process according to claim 1, which is characterized in that search the mesh in default storehouse described
Before the corresponding stack element of the subfunction of scalar functions and the object function, further include:
The corresponding stack element indentation of each function is preset in storehouse according to function call sequence.
3. EMS memory management process according to claim 1, which is characterized in that search the mesh in default storehouse described
Before the corresponding stack element of the subfunction of scalar functions and the object function, further include:
When receiving memory application request, the first stack element there are identical application location is searched whether in default storehouse;
If it is, the context that the value of first stack element is asked as the memory application;
If it is not, then the context during the memory application is asked as the value of newly-built second stack element and is stored in described pre-
If storehouse.
4. EMS memory management process according to any one of claims 1 to 3, which is characterized in that described in default storehouse
Before the corresponding stack element of subfunction for searching the object function and the object function, further include:
Newly-built Key structural arrays, and the address of the corresponding heap memory of each thread is put into institute as thread private data
It states in Key structural arrays.
5. EMS memory management process according to claim 4, which is characterized in that the stack element that the release is found out is corresponding
Memory, including:
The stack element found out is compared with the key in the Key structural arrays, release belongs to the stack element of current thread
Corresponding memory.
6. a kind of memory management device, which is characterized in that including:
Stack element searching module, for when the memory for getting object function transmission discharges request, being searched in default storehouse
The corresponding stack element of the subfunction of the object function and the object function;
Memory release module, for discharging the corresponding memory of stack element found out.
7. memory management device according to claim 6, which is characterized in that further include:
Stack element memory module, for searching goal stack member corresponding with memory release request in default storehouse described
Before element, the corresponding stack element indentation of each function is preset in storehouse according to function call sequence.
8. the memory management device described according to claim 6 or 7, which is characterized in that further include:
Key structural array creation modules, for searching mesh corresponding with memory release request in default storehouse described
Before marking stack element, Key structural arrays are created, and using the address of the corresponding heap memory of each thread as the privately owned number of thread
According to being put into the Key structural arrays.
9. a kind of memory management equipment, which is characterized in that including:
Memory, for storing computer program;
Processor, realizing the EMS memory management process as described in any one of claim 1 to 5 when for executing the computer program
Step.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program, the meter on the readable storage medium storing program for executing
It is realized when calculation machine program is executed by processor as described in any one of claim 1 to 5 the step of EMS memory management process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810325884.6A CN108563507A (en) | 2018-04-12 | 2018-04-12 | A kind of EMS memory management process, device, equipment and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810325884.6A CN108563507A (en) | 2018-04-12 | 2018-04-12 | A kind of EMS memory management process, device, equipment and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108563507A true CN108563507A (en) | 2018-09-21 |
Family
ID=63534877
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810325884.6A Pending CN108563507A (en) | 2018-04-12 | 2018-04-12 | A kind of EMS memory management process, device, equipment and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108563507A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104347A (en) * | 2019-12-23 | 2020-05-05 | 北京东土军悦科技有限公司 | Heap memory block searching method, device, equipment and storage medium |
CN112286684A (en) * | 2020-10-29 | 2021-01-29 | 苏州浪潮智能科技有限公司 | Memory usage control method, device, equipment and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0962565A (en) * | 1995-08-30 | 1997-03-07 | Matsushita Graphic Commun Syst Inc | Method and device for memory management |
CN1653430A (en) * | 2002-05-07 | 2005-08-10 | 甲骨文国际公司 | Simplified deallocation of memory for programming objects |
CN102981885A (en) * | 2012-12-11 | 2013-03-20 | 中国工程物理研究院流体物理研究所 | Object-based programming method and object-based programming system in C language programming |
CN106407031A (en) * | 2016-09-14 | 2017-02-15 | 华为数字技术(成都)有限公司 | Memory leak positioning method and electronic equipment |
CN106933733A (en) * | 2015-12-30 | 2017-07-07 | 华为技术有限公司 | A kind of method and apparatus for determining RAM leakage position |
-
2018
- 2018-04-12 CN CN201810325884.6A patent/CN108563507A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0962565A (en) * | 1995-08-30 | 1997-03-07 | Matsushita Graphic Commun Syst Inc | Method and device for memory management |
CN1653430A (en) * | 2002-05-07 | 2005-08-10 | 甲骨文国际公司 | Simplified deallocation of memory for programming objects |
CN102981885A (en) * | 2012-12-11 | 2013-03-20 | 中国工程物理研究院流体物理研究所 | Object-based programming method and object-based programming system in C language programming |
CN106933733A (en) * | 2015-12-30 | 2017-07-07 | 华为技术有限公司 | A kind of method and apparatus for determining RAM leakage position |
CN106407031A (en) * | 2016-09-14 | 2017-02-15 | 华为数字技术(成都)有限公司 | Memory leak positioning method and electronic equipment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104347A (en) * | 2019-12-23 | 2020-05-05 | 北京东土军悦科技有限公司 | Heap memory block searching method, device, equipment and storage medium |
CN111104347B (en) * | 2019-12-23 | 2022-03-25 | 北京东土军悦科技有限公司 | Heap memory block searching method, device, equipment and storage medium |
CN112286684A (en) * | 2020-10-29 | 2021-01-29 | 苏州浪潮智能科技有限公司 | Memory usage control method, device, equipment and medium |
CN112286684B (en) * | 2020-10-29 | 2022-08-02 | 苏州浪潮智能科技有限公司 | Memory usage control method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101068735B1 (en) | Processor core stack extension | |
US7673105B2 (en) | Managing memory pages | |
US8275968B2 (en) | Managing unallocated storage space using extents and bitmaps | |
JPWO2012026034A1 (en) | Scheduler, multi-core processor system, and scheduling method | |
US20110307677A1 (en) | Device for managing data buffers in a memory space divided into a plurality of memory elements | |
CN113377291B (en) | Data processing method, device, equipment and medium of cache equipment | |
CN102831068A (en) | Memory operating record processing method and device | |
CN106445835A (en) | Memory allocation method and apparatus | |
JPH04213129A (en) | Memory control system and memory control method | |
CN104216684B (en) | A kind of multi-core parallel concurrent system and its data processing method | |
CN114327917A (en) | Memory management method, computing device and readable storage medium | |
CN109656836A (en) | A kind of data processing method and device | |
CN108563507A (en) | A kind of EMS memory management process, device, equipment and readable storage medium storing program for executing | |
US8185693B2 (en) | Cache-line aware collection for runtime environments | |
CN115269450A (en) | Memory cooperative management system and method | |
US8990537B2 (en) | System and method for robust and efficient free chain management | |
CN107172222A (en) | A kind of date storage method and device based on distributed memory system | |
WO2017142525A1 (en) | Allocating a zone of a shared memory region | |
US9170929B2 (en) | Memory controller | |
CN117435343A (en) | Memory management method and device | |
CN104516827A (en) | Cache reading method and device | |
CN114218149A (en) | Dynamic management method for slave core local memory space on many-core processor | |
CN107038021B (en) | For accessing the methods, devices and systems of random access memory ram | |
JP6333370B2 (en) | Method for implementing dynamic array data structures in cache lines | |
JP2014146366A (en) | Multi-core processor system, and control method and control program of multi-core processor system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180921 |
|
RJ01 | Rejection of invention patent application after publication |