CN101470632B - Sharing internal memory management method and apparatus - Google Patents

Sharing internal memory management method and apparatus Download PDF

Info

Publication number
CN101470632B
CN101470632B CN200710304000.0A CN200710304000A CN101470632B CN 101470632 B CN101470632 B CN 101470632B CN 200710304000 A CN200710304000 A CN 200710304000A CN 101470632 B CN101470632 B CN 101470632B
Authority
CN
China
Prior art keywords
memory
memory block
linked list
data field
stack
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.)
Expired - Fee Related
Application number
CN200710304000.0A
Other languages
Chinese (zh)
Other versions
CN101470632A (en
Inventor
姜琰祥
房厚波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN200710304000.0A priority Critical patent/CN101470632B/en
Publication of CN101470632A publication Critical patent/CN101470632A/en
Application granted granted Critical
Publication of CN101470632B publication Critical patent/CN101470632B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Memory System (AREA)
  • Storage Device Security (AREA)

Abstract

The invention relates to a management method of shared memory and a device, wherein the method comprises a memory double linked list is built, the memory double linked list comprises node information, data information and edge boundary marker information which correspond to each memory block, the node information is located in a node area, the data information is located in a data area, and the edge boundary marker information is located in a marker area. The node information at least comprises the size of the data area, a state marker, an address of a forward memory clock and an address of a backward memory block, wherein the state marker is used to express whether the data area has the data information, corresponding node information is read, and corresponding memory blocks are deleted according to the node information. The invention overcomes the management defect in the prior art that the shared memory can not be effectively managed after building a memory linked list, provides an effective protection mechanism of the shared memory, which leads an application program to effectively manage the space of the shared memory.

Description

Shared-memory management method and device
Technical field
The invention belongs to computer realm, especially belong to a kind of shared-memory management method and device.
Background technology
In software programming field, pointer and Dram are very important concepts, utilize the characteristic of pointer and Dram, carry out related software programming, provide other software programming modes to be difficult to the characteristic that realizes and efficient, to developer, provide great flexible in programming.When pointer and Dram bring the benefit of dirigibility, the leakage and the other problems that have also brought some improper uses to cause, and also problems is sometimes very hidden, investigates very difficult.
Particularly when creating memory headroom and deleting memory headroom; by establishment order (new), directly create or directly delete by delete command (delete); lack necessary protection mechanism; thereby make application program managing internal memory space effectively; and often there will be memory overflow, cross and to delete or to cross the problem such as write, cause system mistake.
Summary of the invention
The embodiment of the present invention provides a kind of shared-memory management method and device, overcome the defect that prior art lacks memory protect mechanism, thereby realized, shared drive effectively managed.
The embodiment of the present invention provides a kind of shared-memory management method, comprise: create internal memory doubly linked list, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at that node area, described data message are positioned at data field, described [Dan label information is positioned at mark zone, and described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block; Read corresponding nodal information; According to described nodal information, delete correspondence memory piece.
The embodiment of the present invention also provides a kind of shared-memory management method, comprising: start host process; Whether judgement creates subprocess command value accordingly with described host process is to generate subprocess; If need to generate subprocess, generate an empty stack, the corresponding internal memory doubly linked list of described subprocess, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at that node area, described data message are positioned at data field, described [Dan label information is positioned at mark zone, and described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block; Described internal memory doubly linked list is pushed to described empty stack, again judge that whether create accordingly subprocess command value with described host process is to generate subprocess, and circulate according to judged result.
The embodiment of the present invention also provides a kind of shared-memory management method, comprise: subprocess is finished, the internal memory doubly linked list corresponding with described subprocess is positioned at a stack, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at node area, described data message is positioned at data field, described [Dan label information is positioned at mark zone, described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block, check whether described internal memory doubly linked list exists the data field not discharging, if there is the data field not discharging, carry out and reclaim memory block, if there is not the data field not discharging, described internal memory doubly linked list is released in described stack.
The embodiment of the present invention also provides a kind of shared-memory management method, comprising: host process is finished; Corresponding at least one the subprocess of described host process, the internal memory doubly linked list corresponding with described subprocess is positioned at a stack, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at that node area, described data message are positioned at data field, described [Dan label information is positioned at mark zone, and described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block; Check whether a stack is empty; If not empty, check whether the internal memory doubly linked list in described stack exists the data field not discharging; If there is the data field not discharging, carry out and reclaim memory block, if there is not the data field not discharging, described internal memory doubly linked list is released in described stack; Finish the subprocess corresponding with doubly linked list in described stack, continue to check whether next stack is empty.
The embodiment of the present invention also provides a kind of shared-memory management device, comprise: creating unit, be used for creating chained list, in described chained list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at that node area, described data message are positioned at data field, described [Dan label information is positioned at mark zone, and described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block; Reading unit, for reading corresponding nodal information; Delete cells, for according to described nodal information, deletes correspondence memory piece.
The embodiment of the present invention also provides a kind of shared-memory management device, comprising: start module, for starting host process; Judge module, whether for judgement and described host process, create accordingly subprocess command value is to generate subprocess; If need to generate subprocess, generate an empty stack, the corresponding internal memory doubly linked list of described subprocess, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at that node area, described data message are positioned at data field, described [Dan label information is positioned at mark zone, and described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block; Stacked module, for described internal memory doubly linked list is pushed to described empty stack, judges whether create accordingly subprocess command value with described host process is to generate subprocess again; And circulate according to judged result.
The embodiment of the present invention also provides a kind of shared-memory management device, comprise: checking module, when subprocess is finished, check whether described internal memory doubly linked list exists the data field not discharging, the internal memory doubly linked list corresponding with described subprocess is positioned at a stack, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at node area, described data message is positioned at data field, described [Dan label information is positioned at mark zone, described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block, memory block recycling module, when the inspection of checking module goes out to have the data field not discharging, for carrying out recovery memory block, the module of popping when the inspection of checking module goes out not exist the data field not discharging, is released described internal memory doubly linked list in described stack.
The embodiment of the present invention also provides a kind of shared-memory management device, comprise: the first checking module, when subprocess is finished, be used for checking whether a stack is empty, corresponding at least one the subprocess of described host process, the internal memory doubly linked list corresponding with described subprocess is positioned at a stack, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at node area, described data message is positioned at data field, described [Dan label information is positioned at mark zone, described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block, the second checking module, when the check result of the first checking module is not sky, for checking whether the internal memory doubly linked list in described stack exists the data field not discharging, the 3rd checking module, when the second checking module checks out the data field that existence do not discharge, for carrying out recovery memory block, when the second checking module checks out while not there is not the data field not discharging, for described internal memory doubly linked list is released in described stack, finish module, for finishing the subprocess corresponding with doubly linked list in described stack, continue to check whether next stack is empty.
A technical scheme in such scheme; by creating and delete the internal memory doubly linked list that includes the nodal information corresponding with each memory block and [Dan label information; realized shared-memory management; overcome prior art and created after internal memory chained list effectively managing shared memory managing defect; a kind of effective shared drive protection mechanism is provided, has made application program managing shared memory space effectively.
A technical scheme in such scheme, by the internal memory doubly linked list corresponding with subprocess pushed to method in stack, make the internal memory doubly linked list of each generation all be positioned at different stacks, with this, realized shared-memory management, thereby effectively overcome the defect that prior art does not have shared-memory management mechanism, make application program managing shared memory space effectively, so stopped to occur in follow-up management a plurality of internal memory doubly linked lists cannot with subprocess problem one to one.
A technical scheme in such scheme, when subprocess is finished, by checking the stack at the internal memory doubly linked list place corresponding with described subprocess, whether also to know in described stack residual internal memory doubly linked list, and this internal memory doubly linked list is reclaimed to memory block treatment step, the internal memory doubly linked list corresponding with described subprocess is released completely, and delete, thereby realized shared-memory management, a kind of effective shared drive protection mechanism is provided, make application program managing shared memory space effectively, and then stopped to occur in follow-up management the problem of residual memory block.
A technical scheme in such scheme, when host process is finished, the all subprocess corresponding with described host process carries out end operation, by checking whether the internal memory doubly linked list corresponding with each subprocess also remains the data field of not release or the step of not deleted memory block, check out all residual, after obsolete data field or memory block, described data field or memory block are discharged or deletion action accordingly, make all internal memory doubly linked lists of described host process management be released or delete, thereby realized shared-memory management, and provide a kind of effective shared drive protection mechanism, make application program managing shared memory space effectively, and then stopped to occur in management the problem of residual memory block.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of shared-memory management method the first embodiment of the present invention;
Fig. 2 is the process flow diagram that shared-memory management method the first embodiment of the present invention creates memory block;
Fig. 3 is that shared-memory management method the first embodiment of the present invention deletes the process flow diagram of the data in correspondence memory region;
Fig. 4 is the process flow diagram of shared-memory management method the second embodiment of the present invention;
Fig. 5 is the process flow diagram of the recovery memory block flow process of shared-memory management method the second embodiment of the present invention;
Fig. 6 is the process flow diagram of shared-memory management method the 3rd embodiment of the present invention;
Fig. 7 is the process flow diagram of crossing write-protect flow process of shared-memory management method the 3rd embodiment of the present invention;
Fig. 8 is the process flow diagram of shared-memory management method the 4th embodiment of the present invention;
Fig. 9 is the process flow diagram of shared-memory management method the 5th embodiment of the present invention;
Figure 10 is the process flow diagram of shared-memory management method the 6th embodiment of the present invention;
Figure 11 is the process flow diagram of shared-memory management method the 7th embodiment of the present invention;
Figure 12 is the structural representation of shared-memory management device the first embodiment of the present invention;
Figure 13 is memory block structural representation in the embodiment of the present invention;
Figure 14 is internal memory doubly linked list structural representation in the embodiment of the present invention;
Figure 15 reclaims the structural representation of memory block flow process unit in shared-memory management device the first embodiment of the present invention;
Figure 16 is the structural representation of shared-memory management device the second embodiment of the present invention;
Figure 17 is the structural representation of shared-memory management device the 3rd embodiment of the present invention;
Figure 18 is the structural representation of shared-memory management device the 4th embodiment of the present invention.
Embodiment
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Shared-memory management method the first embodiment of the present invention
As shown in Figure 1, be the process flow diagram of shared-memory management method the first embodiment of the present invention, shared-memory management method is specific as follows:
Step 101, establishment chained list, in described chained list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at that node area, described data message are positioned at data field, described [Dan label information is positioned at mark zone, and described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block;
Step 102, read corresponding nodal information;
Step 103, according to described nodal information, delete correspondence memory piece.
Shared-memory management method the first embodiment of the present invention; by creating and delete the internal memory doubly linked list that includes the nodal information corresponding with each memory block and [Dan label information; realized shared-memory management; overcome prior art and created after internal memory chained list effectively managing shared memory managing defect; a kind of effective shared drive protection mechanism is provided, has made application program managing shared memory space effectively.
In shared-memory management method the first embodiment of the present invention, after step 101, can also comprise and create memory block flow process, as shown in Figure 2, the process flow diagram for shared-memory management method the first embodiment of the present invention creates memory block, creates memory block flow process and specifically comprises as follows:
Step 201, according to creating instruction, application creates memory block;
Step 202, according to described establishment instruction, nodal information and [Dan label information are set;
Step 203, the judgement forward direction block address memory corresponding with current memory block and rear to block address memory and current block address memory in described internal memory doubly linked list, whether three addresses are identical, if identical execution step 204, if not identical execution step 205;
The nodal information that step 204, basis have arranged, memory block headed by described memory block is arranged, in the nodal information of described memory block, the address that the address of forward direction memory block is set to " nil ", backward memory block is set to " nil ", execution step 206;
The nodal information that step 205, basis have arranged, by described memory setting, it is current memory block, and link described internal memory doubly linked list, in the nodal information of described memory block, the address of forward direction memory block is set to the physical address of forward direction memory block, the backward block address memory of described forward direction memory block is set to the physical address of current memory block simultaneously, the address of backward memory block is set to the physical address of backward memory block, the forward direction block address memory of described backward memory block is set to the physical address of current memory block simultaneously, execution step 206;
Step 206, end application.
Further, step 202 can be specially: according to described establishment instruction, in node area, line number, status indication, data field size, the address of forward direction memory block and the address of backward memory block at the filename at described establishment instruction place, described establishment instruction place is set.So just can learn that creating instruction occurs that mistake causes memory block to occur when abnormal, can find by the nodal information corresponding with there is abnormal memory block the particular location of described establishment instruction, thereby in the time of by establishment memory block, just establishment instruction and memory block are mapped, make in subsequent operation managing shared memory easily.
In addition, the [Dan label information described in step 202 is for representing whether the data message writing exceeds the size of data field.Can learn by described [Dan label information like this, whether the data writing information operating that this memory block was carried out or the operation of releasing memory piece occur extremely, thereby can occur extremely, having realized shared-memory management by effective monitoring internal memory doubly linked list.
In shared-memory management method the first embodiment of the present invention, as shown in Figure 3, for shared-memory management method the first embodiment of the present invention deletes the process flow diagram of the data in correspondence memory region, the data of deleting in correspondence memory region specifically comprise as follows:
Step 301, basis release order, application releasing memory piece;
Step 302, basis release order, and read the nodal information corresponding with described memory block;
Step 303, judge that whether status indication in described nodal information is for deleting, if deleted execution step 305, if not deleted execution step 304;
Step 304, revise described status indication for deleting, discharge corresponding data district, delete memory block described in doubly linked list, execution step 305;
Step 305, end application.
Shared-memory management method the second embodiment of the present invention
As shown in Figure 4, be the process flow diagram of shared-memory management method the second embodiment of the present invention, shared-memory management method is specific as follows:
Step 401, establishment chained list, in described chained list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at that node area, described data message are positioned at data field, described [Dan label information is positioned at mark zone, and described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block;
Step 402, read corresponding nodal information;
Step 403, according to described nodal information, discharge corresponding data field, delete correspondence memory piece;
Step 404, recovery memory block flow process.
Shared-memory management method the second embodiment of the present invention; by increase the method that reclaims memory block flow process after deleting internal memory; effectively prevented that the operation of deletion memory block from occurring abnormal; cause the memory block of not deleted completely to remain in internal memory doubly linked list; cause the defect of internal memory waste, thereby realized shared-memory management; a kind of effective shared drive protection mechanism is provided, make application program effectively managing shared memory between.
In shared-memory management method the second embodiment of the present invention, reclaim memory block flow process, as shown in Figure 5, the process flow diagram for the recovery memory block flow process of shared-memory management method the second embodiment of the present invention, specifically comprises as follows:
Step 501, according to recovery command, memory block is reclaimed in application;
Step 502, according to recovery command, pointer moves to the position of described memory block;
Whether step 503, the judgement status indication corresponding with described memory block be for deleting, if deleted execution step 504, if not deleted execution step 505;
Whether step 504, the judgement data area corresponding with described memory block have data message, if there is data message execution step 508, if there is no data message execution step 506;
505 if not delete, and judges whether the data area corresponding with described memory block has data message, if there is data message execution step 507, if there is no data message execution step 508;
Step 506, alarm level is set, and exports described alarm level, execution step 508;
Described memory block is deleted in step 507, the release data field corresponding with described memory block in internal memory doubly linked list, execution step 508;
Step 508, end application.
Like this; by pointer being moved to correspondence memory position; and the state that checks this internal memory whether with record consistent method; having overcome that prior art creates after internal memory chained list cannot the state of effective monitoring data field and the whether consistent defect of the status indication of node area; thereby realized shared-memory management; a kind of effective shared drive protection mechanism is provided, has made application program managing shared memory space effectively, and then stopped to occur in follow-up management RAM leakage or crossed the problem such as delete.
Wherein, after step 507, can also comprise: warning information is set, and exports described warning information.
Shared-memory management method the 3rd embodiment of the present invention
As shown in Figure 6, be the process flow diagram of shared-memory management method the 3rd embodiment of the present invention, shared-memory management method is specific as follows:
Step 601, establishment chained list, include the nodal information corresponding with each memory node and [Dan label information in described chained list;
Step 602, read corresponding nodal information;
Step 603, according to described nodal information, delete the data in correspondence memory region;
Step 604, mistake write-protect flow process.
In shared-memory management method the 3rd embodiment of the present invention, cross write-protect flow process, as shown in Figure 7, the process flow diagram of crossing write-protect flow process for shared-memory management method the 3rd embodiment of the present invention, specifically comprises as follows:
Step 701, according to crossing write-protect instruction, the cross write-protect of application to memory block.
Step 702, according to crossing write-protect instruction, pointer moves to the position of described memory block.
Step 703, judgement corresponding with described memory block [Dan label information whether be normal, if normally perform step 705, if not normal step 704.In implementation procedure, if be assumed to be normal words when [Dan label information is " 0 ", [Dan label information is improper for " 1 " time, can perform step 705, can perform step 704 when [Dan label information is for " 1 " when [Dan label information is for " 0 ".
Step 704, warning information is set, filename, line number and the described warning information at the place of releasing order of memory discharge operation are carried out in output to described memory block, and the release data field corresponding with described memory block, in internal memory doubly linked list, delete described memory block, execution step 705.
Step 705, complete operation.
Shared-memory management method the 3rd embodiment of the present invention; by the method for monitoring writing instruction; overcome prior art and created after internal memory chained list effectively managing shared memory managing defect; a kind of effective shared drive protection mechanism is provided; make application program managing shared memory space effectively, and then stopped in follow-up management, to occur writing problem.
Shared-memory management method the 4th embodiment of the present invention
As shown in Figure 8, be the process flow diagram of shared-memory management method the 4th embodiment of the present invention, shared-memory management method is specific as follows:
Step 801, the host process that starts.
Whether step 802, judgement and described host process create subprocess command value is accordingly to generate subprocess; If need to generate subprocess execution step 803.In implementation procedure, if be set to not need to generate subprocess when being set to generate subprocess, establishment subprocess command value for " 1 " when creating subprocess command value for " 0 ", perform step 803 when creating subprocess command value for " 0 ".
Step 803, generation one empty stack, the corresponding internal memory doubly linked list of described subprocess, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at that node area, described data message are positioned at data field, described [Dan label information is positioned at mark zone, described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block, execution step 804.
Step 804, described internal memory doubly linked list is pushed to described empty stack, execution step 802.
The embodiment of the present invention, by the internal memory doubly linked list corresponding with subprocess pushed to method in stack, make the internal memory doubly linked list of each generation all be positioned at different stacks, with this, realized shared-memory management, thereby effectively overcome the defect that prior art does not have shared-memory management mechanism, make application program managing shared memory space effectively, so stopped to occur in follow-up management a plurality of internal memory doubly linked lists cannot with subprocess problem one to one.
Shared-memory management method the 5th embodiment of the present invention
As shown in Figure 9, be the process flow diagram of shared-memory management method the 5th embodiment of the present invention, shared-memory management method specifically comprises as follows:
Step 901, subprocess is finished, execution step 902, the internal memory doubly linked list corresponding with described subprocess is positioned at a stack, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at node area, described data message is positioned at data field, described [Dan label information is positioned at mark zone, described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block,
Step 902, check whether described internal memory doubly linked list exists the data field not discharging, wherein particular exam method can be: whether the data field corresponding with each memory block according to the inspection of described internal memory doubly linked list has data, if there are data to think, has the data field not discharging; According to check result, the data field execution step 903 not discharging if exist, the data field execution step 904 not discharging if do not exist;
If step 903 exists the data field not discharging, carry out and reclaim memory block, execution step 904;
If step 904 does not exist the data field not discharging, described internal memory doubly linked list is released in described stack;
Step 905, finish described subprocess.
The embodiment of the present invention, when subprocess is finished, by checking the stack at the internal memory doubly linked list place corresponding with described subprocess, whether also to know in described stack residual internal memory doubly linked list, and this internal memory doubly linked list is reclaimed to memory block treatment step, the internal memory doubly linked list corresponding with described subprocess is released completely, and delete, thereby realized shared-memory management, a kind of effective shared drive protection mechanism is provided, make application program managing shared memory space effectively, and then stopped to occur in follow-up management the problem of residual memory block.
Further, the treatment step of described recovery memory block treatment step as shown in Figure 5 in embodiments of the present invention, the recovery internal memory flow process described in shared-memory management method the second embodiment of the present invention, therefore here repeats no more.
Shared-memory management method the 6th embodiment of the present invention
As shown in figure 10, be the process flow diagram of shared-memory management method the 6th embodiment of the present invention, shared-memory management method specifically comprises as follows:
Step 1001, host process are finished, execution step 1002; Corresponding at least one the subprocess of described host process, the internal memory doubly linked list corresponding with described subprocess is positioned at a stack, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at that node area, described data message are positioned at data field, described [Dan label information is positioned at mark zone, and described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block;
Whether step 1002, inspection one stack are empty, wherein particular exam method can be specially: the nodal information that reads some memory blocks in a described stack, if the forward direction block address memory of described memory block is identical with described block address memory with backward block address memory, think that a described stack is for empty, otherwise think that a described stack is not for empty; According to check result, perform step if not empty 1003;
Step 1003, if not empty, check whether the internal memory doubly linked list in described stack exists the data field not discharging, wherein particular exam method can be: whether the data field corresponding with each memory block according to the inspection of described internal memory doubly linked list has data, if there are data to think, has the data field not discharging; According to check result, the data field execution step 1004 not discharging if exist, the data field execution step 1005 not discharging if do not exist;
Memory block is reclaimed in step 1004, execution, execution step 1002;
Step 1005, described internal memory doubly linked list is released in described stack, and the end subprocess corresponding with doubly linked list in described stack, execution step 1002.
The embodiment of the present invention, when host process is finished, the all subprocess corresponding with described host process carries out end operation, by checking whether the internal memory doubly linked list corresponding with each subprocess also remains the data field of not release or the step of not deleted memory block, check out all residual, after obsolete data field or memory block, described data field or memory block are discharged or deletion action accordingly, make all internal memory doubly linked lists of described host process management be released or delete, thereby realized shared-memory management, and provide a kind of effective shared drive protection mechanism, make application program managing shared memory space effectively, and then stopped to occur in management the problem of residual memory block.
Further, the treatment step of described recovery memory block treatment step as shown in Figure 5 in embodiments of the present invention, the recovery internal memory flow process described in shared-memory management method the second embodiment of the present invention, therefore here repeats no more.
Shared-memory management method the 7th embodiment of the present invention
As shown in figure 11, be the process flow diagram of shared-memory management method the 7th embodiment of the present invention, shared-memory management method specifically comprises as follows:
Step 1101, host process is finished, execution step 1102, corresponding at least one the subprocess of described host process, the internal memory doubly linked list corresponding with described subprocess is positioned at a stack, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at node area, described data message is positioned at data field, described [Dan label information is positioned at mark zone, described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block.
Step 1102, check that whether described stack is empty, performs step 1103 if not empty.
Step 1103, judge whether described stack is last stack, if last stack execution step 1107, if not last stack execution step 1104.When realizing, first according to host process, generate an empty stack, then according to each subprocess generating, using the first memory block physical address of the internal memory doubly linked list corresponding with each subprocess as data message, leave in the data field of correspondence memory piece of the internal memory doubly linked list of being managed by described host process.Like this, in the internal memory doubly linked list of host process management, by reading the nodal information of the memory block corresponding with the subprocess of needs judgement, and the backward block address memory that judges memory block described in the internal memory doubly linked list of host process management is " nil ", think that a described stack is last stack, otherwise be not last stack.
Step 1104, check whether internal memory doubly linked list in described stack exists the data field not discharging, the data field execution step 1105 not discharging if exist, the data field execution step 1106 not discharging if do not exist.
Memory block is reclaimed in step 1105, execution, execution step 1102.
Step 1106, described internal memory doubly linked list is released in described stack, finished the subprocess corresponding with doubly linked list in described stack, perform step 1102.
Step 1107, check whether internal memory doubly linked list in described stack exists the data field not discharging, the data field not discharging if exist carries out 1108, the data field execution step 1109 not discharging if do not exist.
Memory block is reclaimed in step 1108, execution, execution step 1109.
Step 1109, described internal memory doubly linked list is released in described stack, finished the subprocess corresponding with doubly linked list in described stack, perform step 1110.
Step 1110, the described host process that finishes.
The embodiment of the present invention; when host process complete in; check whether stack is empty, also checks whether checked stack is the method for last stack, when having prevented embodiment of the present invention managing shared memory simultaneously; enter endless loop; the defect of the resource of waste system, thus realized shared-memory management, and a kind of effective shared drive protection mechanism is provided; make application program managing shared memory space effectively, and then stopped to occur in management the problem of residual memory block.
Shared-memory management device the first embodiment of the present invention
As shown in figure 12, be the structural representation of shared-memory management device the first embodiment of the present invention, shared-memory management device specifically comprises as follows:
Creating unit 1201, be used for creating chained list, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at that node area, described data message are positioned at data field, described [Dan label information is positioned at mark zone, and described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block;
Reading unit 1202, for reading corresponding nodal information;
Delete cells 1203, for according to described nodal information, deletes the data in correspondence memory region.
In the present embodiment, after creating unit, also comprise and create memory block unit, described establishment memory block unit specifically comprises: application creation module, for according to creating instruction, apply for creating memory block; Module is set, for according to described establishment instruction, nodal information and [Dan label information is set; Judge module, for judging at the described internal memory doubly linked list forward direction block address memory corresponding with current memory block and rear whether identical to block address memory and current block address memory, if identical, according to the nodal information having arranged, memory block headed by described memory block is arranged, finishes application; If not identical, according to the nodal information having arranged, by described memory setting, be current memory block, and link described internal memory doubly linked list, finish application.
Further, in the present embodiment, delete cells specifically comprises: application release module, for according to releasing order, apply for releasing memory piece; Read module, for according to releasing order, reads the nodal information corresponding with described memory block; Judge module, whether for deleting, if so, finishes application for the status indication that judges described nodal information; Otherwise, revise described status indication for deleting, discharge corresponding data district, delete memory block described in doubly linked list.
By creating unit, create one like this and there is node area, the memory block of data field and mark zone, make by being positioned at the size of data field described in the information management of node area, the address of forward direction memory block and the address of backward memory block and other related content, by being positioned at the [Dan label information of mark zone, judge whether memory block existed write operation, make all memory blocks that generate form each other connection, and form internal memory doubly linked list, realized shared-memory management, a kind of effective shared drive protection mechanism is provided, make application program managing shared memory space effectively.
As shown in Fig. 13, be memory block structural representation in the embodiment of the present invention, memory block comprises: node area, data field and mark zone.Wherein, node area (Node), be used for depositing nodal information, as data field size, create memory block instruction place filename, the instruction place line number that creates memory block, data field be whether delete, the address of forward direction memory block and the address of backward memory block; Data field (Data), is used for depositing application internal memory (new) object; Mark zone (SideFlag), is used for depositing some [Dan label informations, and these information are used for checking, in subsequent process, and when data field operate, the action generation that whether having crossed the border writes.
As shown in figure 14, be internal memory doubly linked list structural representation in the embodiment of the present invention, internal memory doubly linked list comprises first memory block, middle memory block and tail memory block.Wherein first memory block has comprised the address information of the second memory block, and middle memory block has comprised the address information of adjacent two memory blocks, and tail memory block has comprised the address information of penultimate memory block.
Further, in embodiments of the present invention, can after delete cells, increase by one and reclaim memory block flow process unit, as shown in figure 15, for reclaiming the structural representation of memory block flow process unit in shared-memory management device the first embodiment of the present invention, described recovery memory block flow process unit specifically comprises:
Application recycling module 1501, for according to recovery command, applies for reclaiming memory block;
Mobile module 1502, for according to recovery command, pointer moves to the position of described memory block;
The first judge module 1503, for judging that whether the status indication corresponding with described memory block be for deleting;
The second judge module 1504, when the first judge module 1503 judged results are while having deleted, for judging whether the data area corresponding with described memory block has data message; If have data message to finish application, if there is no data message, alarm level be set, and export described alarm level;
The 3rd judge module 1505, when the first judge module 1503 judged results are not while having deleted, for judging whether the data area corresponding with described memory block has data message; If there is data message, discharge the data field corresponding with described memory block, in internal memory doubly linked list, delete described memory block, if there is no data message, finish application.
By reclaiming the existing status indication that pointer is moved to correspondence memory piece in memory block unit; and check the whether consistent method of actual conditions of state mark and data field; prevented when discharging data field or this deletion memory block; occur abnormal; cause the inconsistent problem of state of status indication and data field to occur; realize shared-memory management, a kind of effective shared drive protection mechanism is provided, made application program managing shared memory space effectively.
Further, in embodiments of the present invention, can also increase write-protect flow process unit after delete cells, the described write-protect flow process unit of crossing specifically comprises:
Apply for write-protect module, for according to crossing write-protect instruction, applied for the write-protect of crossing to memory block;
Mobile module, for according to crossing write-protect instruction, pointer moves to the position of described memory block;
Judge module, after pointer moves to the position of described memory block, for judging whether corresponding with described memory block [Dan label information is normal; If normal, complete operation, if not normal, warning information is set, filename, line number and the described warning information at the place of releasing order of memory discharge operation are carried out in output to described memory block, and the release data field corresponding with described memory block, in internal memory doubly linked list, delete described memory block.
By pointer is moved to mark zone, and read the method for the [Dan label information that is positioned at mark zone, judge whether the operation of data field is occurred extremely, as the data of putting into data field are greater than the capacity of data field etc., and to occurring that abnormal memory block carries out respective handling, according to intensity of anomaly outputting alarm information, or delete correspondence memory piece, or the filename at output abnormality instruction place and line number etc., realized shared-memory management, and provide a kind of effective shared drive protection mechanism, make application program managing shared memory space effectively.
Shared-memory management device the second embodiment of the present invention
As shown in figure 16, be the structural representation of shared-memory management device the second embodiment of the present invention, this device specifically comprises as follows:
Start module 1601, for starting host process;
Judge module 1602, whether for judgement and described host process, create accordingly subprocess command value is to generate subprocess; If need to generate subprocess, generate an empty stack, the corresponding internal memory doubly linked list of described subprocess, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at that node area, described data message are positioned at data field, described [Dan label information is positioned at mark zone, and described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block;
Stacked module 1603, after judge module 1602 is finished, for described internal memory doubly linked list is pushed to described empty stack, and continues judge module 1602.
The embodiment of the present invention, by the internal memory doubly linked list corresponding with subprocess pushed to method in stack, make the internal memory doubly linked list of each generation all be positioned at different stacks, with this, realized shared-memory management, thereby effectively overcome the defect that prior art does not have shared-memory management mechanism, make application program managing shared memory space effectively, so stopped to occur in follow-up management a plurality of internal memory doubly linked lists cannot with subprocess problem one to one.
Shared-memory management device the 3rd embodiment of the present invention
As shown in figure 17, be the structural representation of shared-memory management device the 3rd embodiment of the present invention, this device specifically comprises as follows:
Checking module 1701, when subprocess is finished, check whether described internal memory doubly linked list exists the data field not discharging, the internal memory doubly linked list corresponding with described subprocess is positioned at a stack, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at node area, described data message is positioned at data field, described [Dan label information is positioned at mark zone, described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block.Wherein check whether described internal memory doubly linked list exists the data field not discharging to be: whether the data field corresponding with each memory block according to the inspection of described internal memory doubly linked list has data, if there are data to think, has the data field not discharging.
Memory block recycling module 1702, when the inspection of checking module 1701 goes out to have the data field not discharging, for carrying out recovery memory block.
The module 1703 of popping when the inspection of checking module 1701 goes out not exist the data field not discharging, or after memory block recycling module 1702 is finished, released described internal memory doubly linked list, and is finished described subprocess in described stack.
The embodiment of the present invention, when subprocess is finished, by checking the stack at the internal memory doubly linked list place corresponding with described subprocess, whether also to know in described stack residual internal memory doubly linked list, and this internal memory doubly linked list is reclaimed to memory block treatment step, the internal memory doubly linked list corresponding with described subprocess is released completely, and delete, thereby realized shared-memory management, a kind of effective shared drive protection mechanism is provided, make application program managing shared memory space effectively, and then stopped to occur in follow-up management the problem of residual memory block.
Shared-memory management device the 4th embodiment of the present invention
As shown in figure 18, be the structural representation of shared-memory management device the 4th embodiment of the present invention, this device specifically comprises as follows:
The first checking module 1801, when subprocess is finished, be used for checking whether a stack is empty, corresponding at least one the subprocess of described host process, the internal memory doubly linked list corresponding with described subprocess is positioned at a stack, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at node area, described data message is positioned at data field, described [Dan label information is positioned at mark zone, described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block.Wherein check whether a stack is that empty method can be: the nodal information that reads some memory blocks in a described stack, if the forward direction block address memory of described memory block is identical with described block address memory with backward block address memory, think that a described stack is for empty, otherwise think that a described stack is not for empty.
The second checking module 1802, when the check result of the first checking module 1801 is not sky, for checking whether the internal memory doubly linked list in described stack exists the data field not discharging.Wherein check whether the internal memory doubly linked list in described stack exists the data field method not discharging to be: whether the data field corresponding with each memory block according to the inspection of described internal memory doubly linked list has data, if there are data to think, has the data field not discharging.
The 3rd checking module 1803, when the second checking module 1802 checks out the data field that existence do not discharge, be used for carrying out recovery memory block, when the second checking module checks out the data field that does not have not release, for described internal memory doubly linked list is released in described stack.
Finish module 1804, after described internal memory doubly linked list is released in described stack, for finishing the subprocess corresponding with doubly linked list in described stack, continue to check whether next stack is empty.
The embodiment of the present invention, when host process is finished, the all subprocess corresponding with described host process carries out end operation, by checking whether the internal memory doubly linked list corresponding with each subprocess also remains the data field of not release or the step of not deleted memory block, check out all residual, after obsolete data field or memory block, described data field or memory block are discharged or deletion action accordingly, make all internal memory doubly linked lists of described host process management be released or delete, thereby realized shared-memory management, and provide a kind of effective shared drive protection mechanism, make application program managing shared memory space effectively, and then stopped to occur in management the problem of residual memory block.
Further, after the first judge module 1801, can also increase by the first judge module, for judging whether a described stack is last stack.When the first judge module is judged a described stack for last stack, described end module, after finishing the subprocess corresponding with doubly linked list in described stack, does not reexamine next stack, directly finishes described host process.In specific implementation process, first according to host process, generate an empty stack, then according to each subprocess generating, using the first memory block physical address of the internal memory doubly linked list corresponding with each subprocess as data message, leave in the data field of correspondence memory piece of the internal memory doubly linked list of being managed by described host process.Like this, wherein judge that whether a described stack is that the method for last stack can be: in the internal memory doubly linked list of host process management, by reading the nodal information of the memory block corresponding with the subprocess of needs judgement, and the backward block address memory that judges memory block described in the internal memory doubly linked list of host process management is " nil ", think that a described stack is last stack, otherwise be not last stack.Like this; when host process complete in; by check whether stack is empty, also checks whether checked stack is the method for last stack, when having prevented embodiment of the present invention managing shared memory simultaneously; enter endless loop; the defect of the resource of waste system, thus realized shared-memory management, and a kind of effective shared drive protection mechanism is provided; make application program managing shared memory space effectively, and then stopped to occur in management the problem of residual memory block.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of programmed instruction, aforesaid program can be stored in a computer read/write memory medium, this program, when carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a shared-memory management method, is characterized in that comprising:
Start host process;
Whether judgement creates subprocess command value accordingly with described host process is to generate subprocess; If need to generate subprocess, generate an empty stack, the corresponding internal memory doubly linked list of described subprocess, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at that node area, described data message are positioned at data field, described [Dan label information is positioned at mark zone, and described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block;
Described internal memory doubly linked list is pushed to described empty stack, again judge that whether create accordingly subprocess command value with described host process is to generate subprocess, and circulate according to judged result.
2. a shared-memory management method, is characterized in that comprising:
Subprocess is finished, the internal memory doubly linked list corresponding with described subprocess is positioned at a stack, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at that node area, described data message are positioned at data field, described [Dan label information is positioned at mark zone, and described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block;
Check whether described internal memory doubly linked list exists the data field not discharging; If there is the data field not discharging, carry out and reclaim memory block, if there is not the data field not discharging, described internal memory doubly linked list is released in described stack.
3. shared-memory management method according to claim 2, is characterized in that carrying out and reclaims memory block and be specially:
According to recovery command, memory block is reclaimed in application;
According to recovery command, pointer moves to the position of described memory block;
Judge that whether the status indication corresponding with described memory block be for deleting; If delete, judge whether the data area corresponding with described memory block has data message; If have data message to finish application, if there is no data message, alarm level be set, and export described alarm level; If not delete, judge whether the data area corresponding with described memory block has data message, if there is data message, discharge the data field corresponding with described memory block, in internal memory doubly linked list, delete described memory block, if there is no data message, finish application.
4. a shared-memory management method, is characterized in that comprising:
Host process is finished; Corresponding at least one the subprocess of described host process, the internal memory doubly linked list corresponding with described subprocess is positioned at a stack, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at that node area, described data message are positioned at data field, described [Dan label information is positioned at mark zone, and described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block;
Check whether a stack is empty; If not empty, check whether the internal memory doubly linked list in described stack exists the data field not discharging; If there is the data field not discharging, carry out and reclaim memory block, if there is not the data field not discharging, described internal memory doubly linked list is released in described stack; Finish the subprocess corresponding with doubly linked list in described stack, continue to check whether next stack is empty.
5. shared-memory management method according to claim 4, is characterized in that, is checking a described stack also comprises after whether being sky: judge whether a described stack is last stack; If last stack, after finishing the subprocess corresponding with doubly linked list in described stack, finishes described host process.
6. shared-memory management method according to claim 4, reclaims memory block and is specially if it is characterized in that carrying out:
According to recovery command, memory block is reclaimed in application;
According to recovery command, pointer moves to the position of described memory block;
Judge that whether the status indication corresponding with described memory block be for deleting; If delete, judge whether the data area corresponding with described memory block has data message; If have data message to finish application, if there is no data message, alarm level be set, and export described alarm level; If not delete, judge whether the data area corresponding with described memory block has data message, if there is data message, discharge the data field corresponding with described memory block, in internal memory doubly linked list, delete described memory block, if there is no data message, finish application.
7. a shared-memory management device, is characterized in that comprising:
Start module, for starting host process;
Judge module, whether for judgement and described host process, create accordingly subprocess command value is to generate subprocess; If need to generate subprocess, generate an empty stack, the corresponding internal memory doubly linked list of described subprocess, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at that node area, described data message are positioned at data field, described [Dan label information is positioned at mark zone, and described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block;
Stacked module, for described internal memory doubly linked list is pushed to described empty stack, judges whether create accordingly subprocess command value with described host process is to generate subprocess again; And circulate according to judged result.
8. a shared-memory management device, is characterized in that comprising:
Checking module, when subprocess is finished, check whether internal memory doubly linked list exists the data field not discharging, the internal memory doubly linked list corresponding with described subprocess is positioned at a stack, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at node area, described data message is positioned at data field, described [Dan label information is positioned at mark zone, described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block,
Memory block recycling module, when the inspection of checking module goes out to have the data field not discharging, for carrying out recovery memory block;
The module of popping when the inspection of checking module goes out not exist the data field not discharging, is released described internal memory doubly linked list in described stack.
9. a shared-memory management device, is characterized in that comprising:
The first checking module, when subprocess is finished, be used for checking whether a stack is empty, corresponding at least one the subprocess of host process, the internal memory doubly linked list corresponding with described subprocess is positioned at a stack, in described internal memory doubly linked list, include the nodal information corresponding with each memory block, data message and [Dan label information, described nodal information is positioned at node area, described data message is positioned at data field, described [Dan label information is positioned at mark zone, described nodal information at least includes the size of described data field, for representing whether data field has the status indication of data message, the address of forward direction memory block and the address of backward memory block,
The second checking module, when the check result of the first checking module is not sky, for checking whether the internal memory doubly linked list in described stack exists the data field not discharging;
The 3rd checking module, when the second checking module checks out the data field that existence do not discharge, for carrying out recovery memory block, when the second checking module checks out while not there is not the data field not discharging, for described internal memory doubly linked list is released in described stack;
Finish module, for finishing the subprocess corresponding with doubly linked list in described stack, continue to check whether next stack is empty.
10. shared-memory management device according to claim 9, is characterized in that also comprising at the first checking module:
The first judge module, for judging whether a described stack is last stack;
When the first judge module is judged a described stack for last stack, described end module, after finishing the subprocess corresponding with doubly linked list in described stack, finishes described host process.
CN200710304000.0A 2007-12-24 2007-12-24 Sharing internal memory management method and apparatus Expired - Fee Related CN101470632B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710304000.0A CN101470632B (en) 2007-12-24 2007-12-24 Sharing internal memory management method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710304000.0A CN101470632B (en) 2007-12-24 2007-12-24 Sharing internal memory management method and apparatus

Publications (2)

Publication Number Publication Date
CN101470632A CN101470632A (en) 2009-07-01
CN101470632B true CN101470632B (en) 2014-10-08

Family

ID=40828120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710304000.0A Expired - Fee Related CN101470632B (en) 2007-12-24 2007-12-24 Sharing internal memory management method and apparatus

Country Status (1)

Country Link
CN (1) CN101470632B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073591A (en) * 2011-01-14 2011-05-25 福建星网视易信息系统有限公司 Method and system for detecting memory occupancy state of embedded system
CN102693276A (en) * 2012-03-26 2012-09-26 成都索贝数码科技股份有限公司 File storage, access, revision, virtual share and virtual deletion method based on agile storage
CN102685590B (en) * 2012-05-14 2014-12-10 深圳市九洲电器有限公司 Method and device for managing set top box memory
CN102710774B (en) * 2012-06-04 2014-12-17 深圳市宏电技术股份有限公司 Method and system for data transmission
CN104182350B (en) * 2013-05-28 2017-07-21 中国银联股份有限公司 A kind of EMS memory management process and device for including the application of multiple processes
CN104424030B (en) * 2013-08-22 2020-01-14 腾讯科技(深圳)有限公司 Method and device for sharing memory by multi-process operation
CN105988876B (en) * 2015-03-27 2019-09-17 杭州迪普科技股份有限公司 Memory allocation method and device
CN106021000B (en) * 2016-06-02 2018-06-01 北京百度网讯科技有限公司 For the shared-memory management method and apparatus of robot operating system
CN107643942B (en) * 2016-07-21 2020-11-03 杭州海康威视数字技术股份有限公司 State information storage method and device
CN107797864A (en) * 2017-10-19 2018-03-13 浪潮金融信息技术有限公司 Process resource method and device, computer-readable recording medium, terminal
CN108334435B (en) * 2018-01-18 2021-12-24 杭州迪普科技股份有限公司 Method and device for reminding leakage of shared memory
CN109376003A (en) * 2018-08-17 2019-02-22 中国航空无线电电子研究所 A kind of GPU video memory management method of chain structure
CN111831596B (en) * 2020-07-28 2022-01-21 山东有人物联网股份有限公司 RTOS serial port network transmission method and device
CN112860458B (en) * 2021-02-22 2022-10-25 北京睿芯高通量科技有限公司 Inter-process communication method and system based on shared memory

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1532708A (en) * 2003-03-19 2004-09-29 华为技术有限公司 Static internal storage management method
CN1936859A (en) * 2005-09-30 2007-03-28 康佳集团股份有限公司 Internal memory monitoring method
CN101075214A (en) * 2007-06-28 2007-11-21 腾讯科技(深圳)有限公司 Method and system for managing memory

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1532708A (en) * 2003-03-19 2004-09-29 华为技术有限公司 Static internal storage management method
CN1936859A (en) * 2005-09-30 2007-03-28 康佳集团股份有限公司 Internal memory monitoring method
CN101075214A (en) * 2007-06-28 2007-11-21 腾讯科技(深圳)有限公司 Method and system for managing memory

Also Published As

Publication number Publication date
CN101470632A (en) 2009-07-01

Similar Documents

Publication Publication Date Title
CN101470632B (en) Sharing internal memory management method and apparatus
US6381176B1 (en) Method of driving remapping in flash memory and flash memory architecture suitable therefor
CN102667703B (en) For the system and method for the optimization recycling in Virtual Tape Library System
US20180260317A1 (en) Method for managing the copying and storing of data in garbage collection, memory storage device and memory control circuit unit using the same
CN104063186B (en) A kind of data access method of electronic equipment
TWI351604B (en)
CN106598878B (en) Solid state disk cold and hot data separation method
CN103955431B (en) Data management method and apparatus in flash memory storage device
TWI524183B (en) Data writing method, memory control circuit unit and memory storage apparatus
US20090100290A1 (en) Memory controller, nonvolatile memory device, nonvolatile memory system, and data writing method
CN101963891A (en) Method and device for data storage and processing, solid-state drive system and data processing system
US7904635B2 (en) Power cut data recovery and data management method for flash media
CN107818269A (en) A kind of file saving method and system based on Flash
CN101231617A (en) Method for processing data of flash memory equipment
CN100463492C (en) Method for storing station name of security receiving chip
CN103064752A (en) Method and device of repairing document
CN105224238B (en) Storage management method, memory storage apparatus and memorizer control circuit unit
US20070005929A1 (en) Method, system, and article of manufacture for sector mapping in a flash device
CN106055372A (en) Method and device for uninstalling application
CN102314476A (en) Reproducing unit, clone method, storage medium and program
EP2267725A1 (en) Memory device for managing the recovery of a non volatile memory
CN108228387B (en) A kind of starting control method, electronic equipment and computer readable storage medium
CN102541743B (en) For the method, apparatus and system of storage administration
CN104461923A (en) Hard disc physical block management method and system
CN211016515U (en) Airborne data destruction device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141008

Termination date: 20151224

EXPY Termination of patent right or utility model