JPH02211562A - Information processing system - Google Patents

Information processing system

Info

Publication number
JPH02211562A
JPH02211562A JP1031983A JP3198389A JPH02211562A JP H02211562 A JPH02211562 A JP H02211562A JP 1031983 A JP1031983 A JP 1031983A JP 3198389 A JP3198389 A JP 3198389A JP H02211562 A JPH02211562 A JP H02211562A
Authority
JP
Japan
Prior art keywords
block
memory
blocks
allocated
information
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
JP1031983A
Other languages
Japanese (ja)
Inventor
Norio Konishi
小西 規雄
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 JP1031983A priority Critical patent/JPH02211562A/en
Publication of JPH02211562A publication Critical patent/JPH02211562A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To easily detect unjust memory breakdown by dividing a memory at a constant size, allocating allocation objective block every other part, and checking whether or not information is written outside the objective block at the time of returning the block. CONSTITUTION:In a system in which plural terminals dividedly use a page to be a memory allocation unit, when the terminal requires the memory during the execution of a program 1, it accesses a block allocating means 2. The means 2 checks whether or not the allocation objective block exists in a memory 6, when it does not exist, an initializing means 3 is accessed to secure the new memory, and then an allocating processing is executed. When the block is unnecessary, the terminal accesses a block returning means 4, the means 4 makes a memory breakdown checking means 5 check the presence/absence of the memory breakdown of the block other than the objective block, then the means 4 returns the block, and reports a result to the terminal. Thus the unjust memory breakdown is checked, and the adverse effect between the terminal can be eliminated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理におけるメモリ管理に利用する。本発
明はメモリ返却時のメモリ破壊の検出が容易にできるメ
モリ破壊検出方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention is used for memory management in information processing. The present invention relates to a memory corruption detection method that can easily detect memory corruption when returning the memory.

〔概要〕〔overview〕

メモリに保有されている情報を取り出し、修正を施して
そのメモリに返却する方式において、割当対象ブロック
を一つおきに配置し、返却時に割り当て対象となってい
ないブロックが変更されていないか否かをチェックする
ことにより、メモリの不当破壊をチェックできるように
したものである。
In a method of extracting information held in memory, making corrections, and returning it to that memory, allocation target blocks are placed every other block, and upon return, it is checked whether blocks that are not allocated have been changed. By checking this, it is possible to check for illegal memory destruction.

〔従来の技術〕[Conventional technology]

従来のシステムは、第7図に示すように情報処理装置1
2が作業端末11からの指定にしたがいメモリ6に保持
された情報を取出し、その情報に変更修正を行いメモリ
6に修正後の情報を返却していた。すなわちハードウェ
アのメモリ割当単位であるページを分割して、それを複
数のジョブが使用していた。
The conventional system has an information processing device 1 as shown in FIG.
2 takes out information held in the memory 6 according to instructions from the work terminal 11, changes and corrects the information, and returns the corrected information to the memory 6. In other words, a page, which is a unit of hardware memory allocation, is divided and used by multiple jobs.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このようなハードウェアのメモリ割当単位であるページ
を分割して、複数の情報が使用するシステムでは、一つ
のジョブのバグにより他のジョブが使用しているメモリ
を破壊することがあり、バグが与える影響がそのジョブ
内にとどまらず他ジョブに影響を与え、またその影響が
その都度違った現象として現れるため、原因の究明に多
くの時間を要する欠点があった。
In systems such as this, where pages, which are the unit of memory allocation in hardware, are divided and used by multiple pieces of information, a bug in one job can destroy the memory used by other jobs. This has the disadvantage that it takes a lot of time to investigate the cause, since the effect is not limited to the job itself but affects other jobs, and the effect appears as a different phenomenon each time.

本発明はこのような欠点を除去するもので、メモリ破壊
の検出が容易にできる方式を提供することを目的とする
The present invention aims to eliminate such drawbacks and provides a method that can easily detect memory corruption.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、作業端末からの指定にしたがいメモリに保持
された情報を取り出す手段と、その情報に変更修正を行
い、前記メモリにその修正後の情報を返却する手段とを
含む情報処理システムにおいて、メモリに対する前記情
報の返却時に、割当対象ブロックのチェーンに従いブロ
ックを割り当てるブロック割当手段と、7%−ドウエア
の割当単位であるページを一定の大きさのブロックに分
割し、分割したブロックを一つおきに割り当てるために
割当対象ブロックをチェーンする初期設定手段と、返却
時に返却対象のブロックを割当対象ブロックのチェーン
に組み込むブロック返却手段と、返却時に返却対象ブロ
ックの大きさを越えて書き込みを行っていないか否かを
チェックするメモリ破壊チェック手段とを備えたことを
特徴とする。
The present invention provides an information processing system that includes means for retrieving information held in a memory according to a specification from a work terminal, and means for modifying the information and returning the modified information to the memory. When returning the information to the memory, block allocation means allocates blocks according to the chain of blocks to be allocated, and a block allocation means that divides a page, which is an allocation unit of 7%-ware, into blocks of a certain size, and divides every other divided block into blocks. an initial setting means for chaining blocks to be allocated in order to allocate them to a block, a block return means to incorporate blocks to be returned into the chain of blocks to be allocated at the time of return, and a block to be returned that does not exceed the size of the block to be returned at the time of return. The present invention is characterized by comprising a memory corruption check means for checking whether or not.

〔作用〕[Effect]

メモリ返却時に確保したメモリの大きさを越えてメモリ
に書き込みを行っていないかをチェックし、割当対象ブ
ロックのチェーンに従いブロックを割り当て、ハードウ
ェアの割当単位であるページを一定の大きさのブロック
に分割し、分割したブロックを一つおきに割り当てるた
めに割当対象ブロックをチェーンする。ブロック返却時
には返却対象ブロックを割当対象ブロックのチェーンに
組み込み、返却対象ブロックの大きさを越えて書き込み
を行っていないか否かをチェックする。
When returning memory, it checks whether the memory has been written to in excess of the allocated memory size, allocates blocks according to the chain of blocks to be allocated, and divides pages, which are the unit of hardware allocation, into blocks of a certain size. Split the blocks and chain the blocks to be allocated in order to allocate every other divided block. When returning a block, the block to be returned is included in the chain of blocks to be allocated, and it is checked whether writing has been performed exceeding the size of the block to be returned.

これにより、メモリが不当に破壊されていないか否かを
チェックすることができる。
This makes it possible to check whether the memory has been improperly destroyed.

〔実施例〕〔Example〕

次に、本発明実施例を図面に基づいて説明する。 Next, embodiments of the present invention will be described based on the drawings.

第1図は本発明実施例の構成を示すブロック図、第7図
は本発明実施例に係るシステムの構成を示すブロック図
である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and FIG. 7 is a block diagram showing the configuration of a system according to the embodiment of the present invention.

本発明実施例は、第7図に示すように端末11からの指
定にしたがいメモリ6に保持された情報を取り出し、そ
の情報に変更修正を行いメモリ6にその修正後の情報を
返却する情報処理装置12を備え、さらに本発明の特徴
として、メモリに対する情報の返却時に、割当対象ブロ
ックのチェーンに従いブロックを割り当てるブロック割
当手段2と、ハードウェアの割当単位であるページを一
定の大きさのブロックに分割し、分割したブロックを一
つおきに割り当てるために割当対象ブロックをチェーン
する初期設定手段3と、ブロック返却時に返却対象のブ
ロックを割当対象ブロックのチェーンに組み込むブロッ
ク返却手段4と、ブロック返却時に返却対象ブロックの
大きさを越えて書き込みを行っていないか否かをチェッ
クするメモリ破壊チェック手段5とを備える。
As shown in FIG. 7, the embodiment of the present invention is an information process that retrieves information held in the memory 6 according to a specification from the terminal 11, changes and corrects the information, and returns the corrected information to the memory 6. The present invention is further characterized by block allocation means 2 which allocates blocks according to the chain of blocks to be allocated when returning information to the memory, and which divides pages, which are hardware allocation units, into blocks of a fixed size. an initial setting means 3 for chaining blocks to be allocated in order to divide and allocate every other divided block; a block return means 4 for incorporating blocks to be returned into a chain of blocks to be allocated at the time of block return; A memory destruction check means 5 is provided for checking whether writing has been performed exceeding the size of the block to be returned.

第2図は本発明実施例のブロック割当手段の処理の流れ
を示す流れ図である。ブロック割当手段2は、割当対象
ブロックのチェーンに割当対象ブロックが存在するか否
かをチェックする空きブロック検索を行い、空きブロッ
クが存在しないときは初期設定手段3を呼び出し、割当
対象ブロックのチェーンの先頭のブロックを割り当てる
FIG. 2 is a flowchart showing the processing flow of the block allocation means according to the embodiment of the present invention. The block allocation means 2 performs a free block search to check whether or not the block to be allocated exists in the chain of the block to be allocated, and when there is no free block, calls the initial setting means 3 to check the chain of the block to be allocated. Allocate the first block.

第3図は本発明実施例の初期設定手段の処理の流れを示
す流れ図である。初期設定手段3は、新たにメモリを確
保し、確保したメモリを一定の大きさに分割して一つお
きにチェーンで結ぶ割当対象ブロックのチェーンを作成
し、チェーンに組み込まれていないブロックを特定のパ
ターンで初期化する。
FIG. 3 is a flowchart showing the processing flow of the initial setting means according to the embodiment of the present invention. Initial setting means 3 allocates new memory, divides the allocated memory into a certain size, creates a chain of allocated blocks that connects every other block with a chain, and identifies blocks that are not incorporated into the chain. Initialize with the pattern.

第4図は本発明実施例のブロック返却手段の処理の流れ
を示す流れ図である。ブロック返却手段4は、メモリ破
壊チェック手段5を呼び出し、返却対象ブロックを割当
対象ブロックのチェーンに組み込む。
FIG. 4 is a flowchart showing the processing flow of the block return means according to the embodiment of the present invention. The block return unit 4 calls the memory corruption check unit 5 and incorporates the block to be returned into the chain of blocks to be allocated.

第5図は本発明実施例のメモリ破壊チェック手段の処理
の流れを示す流れ図である。メモリ破壊チェック手段5
は、返却対象ブロックの物理的に連続した次のブロック
(割り当て対象となっていないブロック)が、設定され
たパターンと等しいか否かをチェックし、等しくないと
きにはメモリ破壊を認識し、破壊されたブロックにブロ
ック初期設定処理で設定されたパターンを設定し、メモ
リ破壊の有無を報告する。
FIG. 5 is a flowchart showing the processing flow of the memory corruption checking means according to the embodiment of the present invention. Memory corruption check method 5
checks whether the next block physically contiguous with the block to be returned (a block that has not been allocated) is equal to the set pattern, and if it is not equal, it recognizes memory corruption and indicates that the block has been destroyed. Sets the pattern set in the block initialization process in the block and reports the presence or absence of memory corruption.

次にこのように構成された本発明実施例の動作について
図面を参照して説明する。
Next, the operation of the embodiment of the present invention configured as described above will be explained with reference to the drawings.

プログラム1を実行中にメモリブロックが必要となった
ジョブは、ブロック割当手段2を呼び出す。ブロック割
当手段2は、第2図に示すように空きブロックの検索を
行い割当対象ブロックが存在するか否かを調べ(ステッ
プ22)、割当対象ブロックが存在しないときには、初
期設定処理呼び出し処理を行い初期設定手段3を呼び出
す(ステップ22) 。
A job that requires a memory block while executing the program 1 calls the block allocation means 2. As shown in FIG. 2, the block allocation means 2 searches for free blocks and checks whether a block to be allocated exists or not (step 22), and when there is no block to be allocated, performs an initial setting process call process. The initial setting means 3 is called (step 22).

初期設定手段3は、第3図に示すようにメモリ確保処理
を実行して新たなメモリを確保しくステップ31)、割
当対象ブロックのチェーン作成処理を行い割当対象ブロ
ックをチェーンしくステップ32)、ブロック初期設定
を行い割り当て対象とならないブロックを特定パターン
に設定しくステップ33)、ブロック割当手段2に処理
を移す。ブロック割当手段2は、第2図に示す空きブロ
ックの割り当て処理を行う(ステップ23)。初期設定
されたメモリの状態を第6図に示す。
As shown in FIG. 3, the initial setting means 3 performs memory allocation processing to secure new memory (step 31), performs chain creation processing for allocation target blocks to chain allocation target blocks (step 32), and blocks Initial settings are performed to set blocks that are not to be allocated to a specific pattern (step 33), and processing is transferred to the block allocation means 2. The block allocation means 2 performs the empty block allocation process shown in FIG. 2 (step 23). FIG. 6 shows the initialized state of the memory.

メモリブロックが不要となったジョブは、ブロック返却
手段4を呼び出す。ブロック返却手段4は、第4図に示
すようにメモリ破壊チェック処理呼び出し処理を行いメ
モリ破壊チェック手段5を呼び出す(ステップ41)。
A job that no longer needs a memory block calls the block return means 4. The block return means 4 performs a memory corruption check process calling process and calls the memory corruption check means 5 as shown in FIG. 4 (step 41).

メモリ破壊チェック手段5は、第5図に示すようにブロ
ック破壊チェック処理を実行して、返却対象ブロックの
物理的に連続した次のブロック(割り当て対象となって
いないブロック)が第3図に示すブロック初期設定処理
(ステップ33) で設定した値と等しいか否かをチェ
ックしくステップ51)、メモリ破壊があった場合には
、ブロック修正処理を行いメモリ破壊を認識しくステッ
プ52)、破壊されたブロックにブロック初期設定処理
(ステップ33)で設定したパターンを設定し、メモリ
破壊の有無をブロック返却手段4に報告する(ステップ
53)。
The memory corruption check means 5 executes the block corruption check process as shown in FIG. 5, and determines whether the block next to the block to be returned (the block that is not to be allocated) is as shown in FIG. Check whether it is equal to the value set in the block initialization process (step 33).Step 51) If there is memory corruption, perform block correction processing to recognize the memory corruption.Step 52) The pattern set in the block initialization process (step 33) is set in the block, and the presence or absence of memory corruption is reported to the block return means 4 (step 53).

ブロック返却手段4は、第4図に示すブロック返却処理
(ステップ42)にて返却対象ブロックを割当対象ブロ
ックのチェーンに組み込み、メモリ破壊の有無を呼び出
し元のジョブに報告する。
The block return unit 4 incorporates the block to be returned into the chain of blocks to be allocated in the block return process (step 42) shown in FIG. 4, and reports the presence or absence of memory corruption to the calling job.

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

以上説明したように本発明によれば、割当対象ブロック
を一つおきに配置し、ブロック返却時に割り当て対象と
なっていないブロックが変更されていないか否かをチェ
ックすることにより、不当にメモリが破壊されていない
かをチェックすることができる効果がある。
As explained above, according to the present invention, by arranging blocks to be allocated every other block and checking whether or not blocks that are not to be allocated have been changed when returning blocks, memory is unduly consumed. It has the effect of checking if it has been destroyed.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明実施例の構成を示すブロック図。 第2図は本発明実施例ブロック割当手段の処理の流れを
示す流れ図。 第3図は本発明実施例の初期設定手段の処理の流れを示
す流れ図。 第4図は本発明実施例のブロック返却手段の処理の流れ
を示す流れ図。 第5図は本発明実施例のメモリ破壊チェック手段の処理
の流れを示す流れ図。 第6図は本発明実施例の初期設定手段により初期設定さ
れたメモリの状態を示す図。 第7図は本発明に係るシステムの全体構成を示すブロッ
ク図。 1・・・プログラム、2・・・ブロック割当手段、3・
・・初期設定手段、4・・・ブロック返却手段、5・・
・メモリ破壊チェック手段、6・・・メモリ、10・・
・制御装置、11・・・端末、12・・・情報処理装置
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. FIG. 2 is a flowchart showing the processing flow of the block allocation means according to the embodiment of the present invention. FIG. 3 is a flowchart showing the processing flow of the initial setting means according to the embodiment of the present invention. FIG. 4 is a flowchart showing the processing flow of the block return means according to the embodiment of the present invention. FIG. 5 is a flowchart showing the processing flow of the memory corruption checking means according to the embodiment of the present invention. FIG. 6 is a diagram showing the state of the memory initialized by the initial setting means of the embodiment of the present invention. FIG. 7 is a block diagram showing the overall configuration of the system according to the present invention. 1...Program, 2...Block allocation means, 3.
... Initial setting means, 4... Block return means, 5...
・Memory corruption check means, 6...Memory, 10...
-Control device, 11...terminal, 12...information processing device.

Claims (1)

【特許請求の範囲】 1、作業端末からの指定にしたがいメモリに保持された
情報を取り出す手段と、その情報に変更修正を行い、前
記メモリにその修正後の情報を返却する手段とを含む情
報処理システムにおいて、メモリに対する前記情報の返
却時に、割当対象ブロックのチェーンに従いブロックを
割り当てるブロック割当手段と、 ハードウェアの割当単位であるページを一定の大きさの
ブロックに分割し、分割したブロックを一つおきに割り
当てるために割当対象ブロックをチェーンする初期設定
手段と、 返却時に返却対象のブロックを割当対象ブロックのチェ
ーンに組み込むブロック返却手段と、返却時に返却対象
ブロックの大きさを越えて書き込みを行っていないか否
かをチェックするメモリ破壊チェック手段と を備えたことを特徴とする情報処理システム。
[Scope of Claims] 1. Information including means for retrieving information held in a memory according to a specification from a work terminal, and means for changing and correcting the information and returning the corrected information to the memory. In the processing system, when the information is returned to the memory, the block allocation means allocates the block according to the chain of blocks to be allocated; Initial setting means for chaining blocks to be allocated in order to allocate them every second; block return means for incorporating blocks to be returned into the chain of blocks to be allocated at the time of return; and means for writing beyond the size of the block to be returned at the time of return. An information processing system comprising: a memory corruption check means for checking whether or not the data has been corrupted.
JP1031983A 1989-02-10 1989-02-10 Information processing system Pending JPH02211562A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1031983A JPH02211562A (en) 1989-02-10 1989-02-10 Information processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1031983A JPH02211562A (en) 1989-02-10 1989-02-10 Information processing system

Publications (1)

Publication Number Publication Date
JPH02211562A true JPH02211562A (en) 1990-08-22

Family

ID=12346171

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1031983A Pending JPH02211562A (en) 1989-02-10 1989-02-10 Information processing system

Country Status (1)

Country Link
JP (1) JPH02211562A (en)

Similar Documents

Publication Publication Date Title
US5097533A (en) System and method for interfacing computer application programs written in different languages to a software system
US8453015B2 (en) Memory allocation for crash dump
US20040117594A1 (en) Memory management method
US20100082929A1 (en) Memory protection method, information processing apparatus, and computer-readable storage medium that stores memory protection program
JPH0619798A (en) Method and system for avoidance of loading of value of selector
JP3910573B2 (en) Method, system and computer software for providing contiguous memory addresses
EP1727043A2 (en) Dynamic mapping of shared libraries
CN111797390B (en) Program running method, program running device, electronic equipment and computer readable storage medium
CN109933435B (en) Control method and device and computer equipment
JPH02211562A (en) Information processing system
US7533233B2 (en) Accommodating multiple operating systems and memory sizes on IA-32 platforms
US5713041A (en) Computer system having a host CPU and a logic for integrating peripheral control functions into the host CPU
JP2001142737A (en) Memory management device
US7958517B2 (en) Apparatus, system, and method for executing functions in an event driven environment from a co-routine environment
US6134577A (en) Method and apparatus for enabling address lines to access the high memory area
US7404063B2 (en) Reclaiming the PCI memory range with minimal memory loss in IA-32 platforms
JPH04127333A (en) Fault detecting system for application task
JP2005209178A (en) Memory protection unit, memory protection method, and memory protection program
JPH0484224A (en) Stack area protection circuit
CN117992368A (en) Near storage computing system and method for data protection
JPS59163663A (en) Detecting method of breakdown of simple file
JPH04205144A (en) Microprocessor
JPS62276644A (en) Buffer storage system
KR20010038662A (en) Stack Error Control Method in Computer Operation System
US20040006677A1 (en) Microcomputer and method for controlling a microcomputer