JPH02181845A - Malfunctional memory free state prevention system for memory during use - Google Patents

Malfunctional memory free state prevention system for memory during use

Info

Publication number
JPH02181845A
JPH02181845A JP1001807A JP180789A JPH02181845A JP H02181845 A JPH02181845 A JP H02181845A JP 1001807 A JP1001807 A JP 1001807A JP 180789 A JP180789 A JP 180789A JP H02181845 A JPH02181845 A JP H02181845A
Authority
JP
Japan
Prior art keywords
memory
free state
free
attribute
memory area
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
Application number
JP1001807A
Other languages
Japanese (ja)
Inventor
Masahiko Gousai
郷西 雅彦
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP1001807A priority Critical patent/JPH02181845A/en
Publication of JPH02181845A publication Critical patent/JPH02181845A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the erroneous free state of a memory during use by providing a free state prohibited memory securing means to secure the memory by giving a memory free state prohibition attribute. CONSTITUTION:This system is constituted of the free state prohibited memory securing means 2 to secure a memory area by giving the memory free state prohibition attribute to a memory area 6 to be an object, an attribute canceling means 3 to cancel the memory free state prohibition attribute given to the memory area 6, and a memory freeing means 4 capable of turning only the memory area with no memory free state prohibition attribute into a free state at the time of a memory free state request. Namely, when the memory area 6 is in danger of being turned into the free state by mistake, the memory area 6 is secured by giving the memory free state prohibition attribute to the memory area 6 by the free state prohibited memory securing means 2. Thus, the memory free state due to malfunction is prevented.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は使用中メモリの誤動作フリー防止方式に関し、
特にメモリの動的な確保・解放機構を有する計算機シス
テムにおいて使用中メモリの誤ったフリー状態を防止す
る使用中メモリの誤動作フリー防止方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a method for preventing malfunctions of memory in use,
In particular, the present invention relates to a method for preventing erroneous freeing of in-use memory, which prevents in-use memory from being erroneously freed in a computer system having a dynamic memory allocation/release mechanism.

〔従来の技術〕[Conventional technology]

従来、メモリの動的な確保・解放機構を有する計算機シ
ステムにおいては、誤動作によるメモリ・フリーに対す
る防御機構がなく、指定されたメモリは無条件にフリー
状態にしていた。
Conventionally, in computer systems having a mechanism for dynamically allocating and releasing memory, there was no mechanism to protect against memory freeing due to malfunction, and designated memory was left unconditionally in a free state.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の使用中メモリの誤動作フリー防止方式は
、使用中のメモリが誤ってフリー状態にされ、システム
全体に重大な障害を発生させるという問題点があった。
The above-described conventional method for preventing malfunctions of memory in use has a problem in that the memory in use is erroneously set free, causing serious problems in the entire system.

本発明の目的は、使用中のメモリが誤ってフリー状態に
される危険性が大きい区間などでは、ユーザがメモリ・
フリーを禁止することができる使用中メモリの誤動作フ
リー防止方式を提供することにある。
An object of the present invention is to allow the user to save the memory in areas where there is a high risk that the memory in use will be accidentally made free.
An object of the present invention is to provide a method for preventing malfunction of a memory in use that can prohibit freeing.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の使用中メモリの誤動作フリー防止方式は、メモ
リの動的な確保・解放機構を有する計算機システムの使
用中メモリの誤動作フリー防止方式において、メモリが
フリー状尽になることを禁止するメモリ・フリー禁止属
性を付与してメモリを確保するフリー禁止メモリ確保手
段と、付与した前記メモリ・フリー禁止属性を取消す属
性消去手段と、メモリ・フリー要求時に前記メモリ・フ
リー禁止属性のないメモリだけをフリー状態にできるメ
モリ・フリー手段とを備えて構成されている。
The method for preventing malfunction freeing of memory in use of the present invention is a method for preventing malfunction freeing of memory in use in a computer system having a dynamic memory allocation/release mechanism. A free-prohibited memory securing means for securing memory by assigning a free-prohibiting attribute; an attribute erasing means for canceling the assigned memory-free-prohibiting attribute; and a free-prohibiting memory that only frees memory without the memory free-prohibiting attribute when a memory freeing request is made. and memory free means that can be set to a state.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

第1図に示す使用中メモリの誤動作フリー防止方式は、
メモリ・フリー禁止属性を対象となるメモリ領域6に付
与しメモリ領域を確保するフリー禁止メモリ確保手段2
、メモリ領域6に付与されたメモリ・フリー禁止属性を
取消す属性消去手段3、メモリ・フリー要求時にメモリ
・フリー禁止属性のないメモリ領域だけをフリー状態に
できるメモリ・フリー手段4から構成されている。
The malfunction-free prevention method for the memory in use shown in Figure 1 is as follows:
Free prohibition memory securing means 2 that assigns a memory free prohibition attribute to the target memory area 6 and secures the memory area
, an attribute erasing means 3 for canceling the memory free prohibition attribute given to the memory area 6, and a memory free means 4 for freeing only the memory area without the memory free prohibition attribute when a memory free request is made. .

次に、動作を説明する。Next, the operation will be explained.

ユーザーは、使用するメモリ領域6が誤ってフリー状態
にされる危険性が大きいか又は、人出力バッファとして
使用するなど誤ってフリー状態にされた場合の影響範囲
が大きいときに、誤動作によりメモリ領域6がフリー状
態になることを防ぐためのメモリ・フリー防止が必要で
あると判断したら、フリー禁止メモリ確保手段2により
メモリ・フリー禁止属性をメモリ領域6に付与しメモリ
領域6を確保する。フリー禁止メモリ確保手段2はメモ
リ領域を確保した後、メモリ領域6の属性フラグ5にメ
モリ・フリー禁止属性を表示する。その後、ユーザーは
メモリ・フリー防止が特に必要でなくなった時点で属性
消去手段3によりメモリ領域6の属性フラグ5のメモリ
・フリー禁止属性表示を取消す。
If the user is using the memory area 6 due to a malfunction when there is a high risk of the memory area 6 being used being accidentally set free, or when the range of impact if the memory area 6 is accidentally set free is large, such as when the memory area 6 is used as a human output buffer, If it is determined that memory free prevention is necessary to prevent the memory area 6 from becoming free, the free prohibition memory securing means 2 assigns a memory free prohibition attribute to the memory area 6 to secure the memory area 6. After securing the memory area, the free prohibition memory securing means 2 displays the memory free prohibition attribute in the attribute flag 5 of the memory area 6. Thereafter, when the memory free prevention is no longer particularly necessary, the user cancels the display of the memory free prohibition attribute of the attribute flag 5 of the memory area 6 using the attribute erasing means 3.

一方、ユーザーは確保したメモリ領域6をフリー状態に
しようとするときは、メモリ・フリー手段4を呼び出す
。メモリ・フリー手段4はメモリ・フリー禁止の対象と
なるメモリ領域6の属性フラグ5を調べ、メモリ・フリ
ー禁止属性が表示されていなければユーザーの要求通り
7メモリ領域6をフリー状態にするが、メモリ・フリー
禁止属性が表示されているときにはメモリ・フリー要求
を拒否する。
On the other hand, when the user wishes to free the secured memory area 6, he calls the memory freeing means 4. The memory freeing means 4 checks the attribute flag 5 of the memory area 6 that is the target of memory freeing prohibition, and if the memory freeing prohibition attribute is not displayed, it frees the memory area 6 as requested by the user. When the memory free prohibition attribute is displayed, the memory free request is rejected.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は、使用中のメモリが誤っ
てフリー状態にされる危険性が大きい区間などでは、ユ
ーザがメモリ・フリーを禁止することができ、誤動作に
よるメモリ・フリーを防止することができるという効果
を有する。
As explained above, the present invention allows the user to prohibit memory freeing in sections where there is a high risk that the memory in use will be erroneously set free, thereby preventing memory freeing due to malfunction. It has the effect of being able to

消去手段、4・・・・・・メモリ・フリー手段、5・・
・・・・属性フラグ、6・・・・・・メモリ領域。
Erasing means, 4...Memory freeing means, 5...
...Attribute flag, 6...Memory area.

Claims (1)

【特許請求の範囲】[Claims] メモリの動的な確保・解放機構を有する計算機システム
の使用中メモリの誤動作フリー防止方式において、メモ
リがフリー状態になることを禁止するメモリ・フリー禁
止属性を付与してメモリを確保するフリー禁止メモリ確
保手段と、付与した前記メモリ・フリー禁止属性を取消
す属性消去手段と、メモリ・フリー要求時に前記メモリ
・フリー禁止属性のないメモリだけをフリー状態にでき
るメモリ・フリー手段とを備えたことを特徴とする使用
中メモリの誤動作フリー防止方式。
Free-prohibited memory that secures memory by adding a memory-free prohibition attribute that prohibits the memory from becoming free, in a method for preventing malfunctions of memory during use in a computer system that has a dynamic memory allocation and release mechanism. The present invention is characterized by comprising a securing means, an attribute erasing means for canceling the assigned memory free prohibition attribute, and a memory free means capable of freeing only the memory without the memory free prohibition attribute when a memory free request is made. This is a method to prevent memory in use from malfunctioning.
JP1001807A 1989-01-06 1989-01-06 Malfunctional memory free state prevention system for memory during use Pending JPH02181845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1001807A JPH02181845A (en) 1989-01-06 1989-01-06 Malfunctional memory free state prevention system for memory during use

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1001807A JPH02181845A (en) 1989-01-06 1989-01-06 Malfunctional memory free state prevention system for memory during use

Publications (1)

Publication Number Publication Date
JPH02181845A true JPH02181845A (en) 1990-07-16

Family

ID=11511844

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1001807A Pending JPH02181845A (en) 1989-01-06 1989-01-06 Malfunctional memory free state prevention system for memory during use

Country Status (1)

Country Link
JP (1) JPH02181845A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013214154A (en) * 2012-03-30 2013-10-17 Fujitsu Ltd Information processing device, information processing device control method, and information processing device control program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013214154A (en) * 2012-03-30 2013-10-17 Fujitsu Ltd Information processing device, information processing device control method, and information processing device control program
US8910004B2 (en) 2012-03-30 2014-12-09 Fujitsu Limited Information processing apparatus, and method of controlling information processing apparatus

Similar Documents

Publication Publication Date Title
EP2120178A1 (en) Access control system, access control method, electronic device, and control program
JPH02181845A (en) Malfunctional memory free state prevention system for memory during use
JPH0764852A (en) Assurance system for dynamically reserved area
CN116166609A (en) Dynamic management of memory firewalls
JPH02173847A (en) Malfunction free preventing system for working memory
US20190384723A1 (en) Method for managing virtual memory
JPS59231800A (en) Preventing device for foul writing to main memory
JPS6097448A (en) Memory protection system
JPH0553748A (en) Method and device for control of multi-window controller
JPH0368044A (en) Dynamic memory control system
JPH05233497A (en) Buffer chain destruction detection device
JPH03144751A (en) Memory miswriting preventing device
JPH0540692A (en) Duplicate area managing system
JPS6224342A (en) Controller incorporating memory data protection circuit
JPH05307503A (en) Write inhibition control system for dual port memory
JPH03100846A (en) Memory write protection circuit
JPH04156640A (en) Write protection system
JPS62108349A (en) Input/output buffer control system
JPH05197629A (en) Memory protecting system
JPH08339328A (en) Bank memory switching circuit
JPS62232054A (en) Controlling system for stack frame descriptor
JPH0442340A (en) Improper access preventing/detecting method for work memory
JPS6285357A (en) Memory protecting device
JPH02285441A (en) Cache controller
JPS60230248A (en) Memory protecting system