JP3018549B2 - File destruction prevention mechanism - Google Patents

File destruction prevention mechanism

Info

Publication number
JP3018549B2
JP3018549B2 JP3084772A JP8477291A JP3018549B2 JP 3018549 B2 JP3018549 B2 JP 3018549B2 JP 3084772 A JP3084772 A JP 3084772A JP 8477291 A JP8477291 A JP 8477291A JP 3018549 B2 JP3018549 B2 JP 3018549B2
Authority
JP
Japan
Prior art keywords
file
point
return
quiesce
source program
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
JP3084772A
Other languages
Japanese (ja)
Other versions
JPH04295933A (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.)
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 JP3084772A priority Critical patent/JP3018549B2/en
Publication of JPH04295933A publication Critical patent/JPH04295933A/en
Application granted granted Critical
Publication of JP3018549B2 publication Critical patent/JP3018549B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は計算機におけるファイル
破壊防止機構に関し、特に自動コミットメント制御機能
を利用するプログラムの実行中にデッドロックが発生し
てもファイル破壊が生じないようにするファイル破壊防
止機構に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file destruction prevention mechanism in a computer, and more particularly to a file destruction prevention mechanism for preventing file destruction even if a deadlock occurs during execution of a program using an automatic commitment control function. About.

【0002】[0002]

【従来の技術】コンパイラの一種に、自動コミットメン
ト制御を利用する旨の指定があれば、翻訳対象となる所
定の言語で記述されたソースプログラム内で使用してい
るファイル(データベースを含む)のうち静止点の確立
処理が可能なファイルについては適当な箇所で自動的に
静止点の確立処理を行い且つデッドロック発生時には静
止点への復帰処理を自動的に行うような自動コミットメ
ント制御ロジックを埋め込んだ目的プログラムを生成す
るコンパイラが報告されている。
2. Description of the Related Art If a kind of compiler specifies that automatic commitment control is used, a file (including a database) used in a source program described in a predetermined language to be translated is used. For files for which quiesce point establishment processing is possible, an automatic commitment control logic has been embedded so that quiesce point establishment processing is automatically performed at an appropriate location and return processing to the quiesce point is automatically performed when a deadlock occurs. Compilers that generate target programs have been reported.

【0003】このような自動コミットメント制御ロジッ
クを埋め込む機能を有するコンパイラを使用することに
より、利用者はプログラミング時にコミットメント制御
を意識する必要がなくなり、その分プログラムの開発効
率が向上する。
By using a compiler having a function of embedding such automatic commitment control logic, the user does not need to be conscious of commitment control at the time of programming, and the program development efficiency is improved accordingly.

【0004】[0004]

【発明が解決しようとする課題】ところで、自動コミッ
トメント制御ロジックが埋め込まれた目的プログラムを
実際に実行すると、次のような問題に遭遇した。
By the way, when the target program in which the automatic commitment control logic is embedded is actually executed, the following problem is encountered.

【0005】即ち、ソースプログラム内で使用している
ファイルの全てが静止点確立処理可能なファイルの場合
には各ファイルについて適当な箇所で静止点の確立が行
われ、若しデッドロックが生じた場合にはデッドロック
にかかる複数のファイルの状態および制御状態を直前の
静止点まで復帰して以後正常に動作を継続することは可
能である。
In other words, if all the files used in the source program are files for which a quiesce point can be established, a quiesce point is established at an appropriate place for each file, and deadlock occurs. In this case, it is possible to return the state and control state of a plurality of files involved in the deadlock to the immediately preceding quiescent point, and to continue normal operation thereafter.

【0006】しかしながら、ソースプログラム内で使用
しているファイルのなかにジャーナルが取れない等の理
由で静止点確立処理が不可能なファイルが混じっていた
場合、そのようなファイルに対しては静止点の確立処理
は行われないので、若しデッドロックが生じると、直前
の静止点まで復帰するファイルと復帰できないファイル
とが生じ、ファイル破壊を招来する可能性がある。
However, if files used in the source program include files for which quiesce point establishment processing cannot be performed because journals cannot be obtained, etc. Is not performed, if a deadlock occurs, a file may be restored to the immediately preceding still point and a file may not be restored, which may lead to file destruction.

【0007】例えば、或るファイルAのレコードR1,
R2,R3を別のファイルBに書き込む処理で、レコー
ドR1をファイルBに書き込み、次のレコードR2を書
き込もうとした時点でデッドロックが生じた場合、共に
静止点確立処理が可能であれば直前の静止点たとえばレ
コードR1を書き込む直前の時点までファイルA,Bの
状態および制御の状態を復帰することができ問題はな
い。
For example, a record R1,
In the process of writing R2 and R3 to another file B, when record R1 is written to file B and a deadlock occurs at the time of writing the next record R2, if the quiesce point establishment process is possible for both, the previous The state of the files A and B and the state of control can be restored to a stationary point, for example, a point immediately before writing the record R1, and there is no problem.

【0008】しかし、ファイルAが静止点確立処理可能
でファイルBが静止点確立処理不可能とすると、ファイ
ルAの状態および制御はレコードR1を書き込む直前の
時点に復帰されるが、ファイルBについてはそのような
復帰は為されず、レコードR1が書き込まれたまま残
る。このため、処理を再開すると、再びレコードR1が
ファイルBに書き込まれることになり、ファイルB内に
2個のレコードR1が記録され、ファイルAとファイル
Bとの間に矛盾が生じ、ファイル破壊につながる。
However, if file A can be processed for establishing a quiesce point and file B cannot be processed for establishing a quiesce point, the state and control of file A are restored to the time immediately before the record R1 is written. Such a return is not performed, and the record R1 remains written. Therefore, when the processing is resumed, the record R1 is written again to the file B, two records R1 are recorded in the file B, and inconsistency occurs between the file A and the file B, and the file is destroyed. Connect.

【0009】上述したように自動コミットメント制御ロ
ジックの埋め込まれた目的プログラムの実行においては
上述したようなファイル破壊の可能性があったが、従来
はそれを事前に防止する機構がなく、デッドロック時の
復帰処理によりファイル破壊が生じてシステムに多大な
被害を及ぼしていた。
As described above, in executing the target program in which the automatic commitment control logic is embedded, there is a possibility that the file may be destroyed as described above. The file was destroyed by the return process of, and the system was seriously damaged.

【0010】本発明はこのような事情に鑑みて為された
ものであり、その目的は、自動コミットメント制御機能
を利用するプログラムの実行中にデッドロックが生じた
場合、そのプログラムがデッドロック時の復帰処理でフ
ァイル破壊を起こす可能性があるときには復帰処理を打
ち切って異常終了させることによりファイル破壊を防止
するファイル破壊防止機構を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and has as its object to solve the problem that when a deadlock occurs during the execution of a program utilizing the automatic commitment control function, the program is executed when the deadlock occurs. An object of the present invention is to provide a file destruction prevention mechanism for preventing file destruction by terminating the recovery process and terminating abnormally when there is a possibility that file destruction may occur in the return process.

【0011】[0011]

【課題を解決するための手段】本発明のファイル破壊防
止機構は上記の目的を達成するために、自動コミットメ
ント制御機能を利用するソースプログラムについてはソ
ースプログラム中で使用しているファイルのうち静止点
の確立処理が可能なファイルに対し自動的に静止点の確
立処理を行うと共にデッドロック発生時には静止点への
復帰処理を行うような自動コミットメント制御ロジック
を埋め込んだ目的プログラムを生成するコンパイラに設
けられ、前記ソースプログラム中に静止点確立処理が不
可能なファイルが存在するか否かを判定し、存在するこ
とによりコンパイルユニット中に生成される外部ルーチ
ンとのインタフェース情報へ静止点への復帰を禁止する
情報を設定する手段と、前記コンパイルユニットの実行
時にデッドロックが発生したときに静止点への復帰処理
を行うために前記コンパイルユニットから呼び出される
外部ルーチン内に設けられ、呼び出し元のインタフェー
ス情報を参照し静止点への復帰が禁止されていることに
より、静止点確立処理が可能なファイルについて復帰処
理を打ち切って前記コンパイルユニットを異常終了させ
る手段とを有している。
In order to achieve the above object, a file destruction prevention mechanism according to the present invention provides a source program that uses an automatic commitment control function for a static point among files used in the source program. Is provided in a compiler that generates a target program embedded with automatic commitment control logic that automatically establishes a quiesce point for a file that can be established, and performs return processing to a quiesce point when a deadlock occurs. It is determined whether or not there is a file in which the quiesce point cannot be established in the source program, and the existence of the file prevents the return to the quiesce point in the interface information with the external routine generated in the compile unit. Means for setting the information to be executed and deadlocks during execution of the compilation unit By the provided within external routines called from compilation unit, return to the stationary point with reference to the calling interface information is prohibited in order to perform the return processing to the still point occurrence, stationary point Means for terminating the compile unit abnormally by terminating the return process for a file that can be established .

【0012】[0012]

【作用】本発明のファイル破壊防止機構においては、自
動コミットメント制御機能を利用するソースプログラム
の翻訳時、そのソースプログラム中に静止点確立処理が
不可能なファイルが存在するか否かが判定され、存在す
ればコンパイルユニット中に生成される外部ルーチンと
のインタフェース情報へ静止点への復帰を禁止する情報
が設定される。そして、前記コンパイルユニットの実行
時にデッドロックが発生すると、前記コンパイルユニッ
トから静止点への復帰処理を行うための外部ルーチンが
呼び出されるが、このとき、呼び出し元のインタフェー
ス情報が参照され、若し静止点への復帰が禁止されてい
れば、静止点確立処理が可能なファイルについて復帰処
理が打ち切られて前記コンパイルユニットは異常終了さ
せられる。
In the file destruction prevention mechanism of the present invention, when translating a source program using the automatic commitment control function, it is determined whether or not there is a file in the source program for which quiesce point establishment processing cannot be performed. If it exists, the information prohibiting the return to the quiesce point is set in the interface information with the external routine generated in the compilation unit. If a deadlock occurs during the execution of the compile unit, an external routine for performing a process of returning to the quiesce point from the compile unit is called. At this time, the interface information of the caller is referred to, and If the return to the point is prohibited , the return processing is aborted for the file for which the still point establishment processing is possible, and the compile unit is abnormally terminated.

【0013】[0013]

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

【0014】図1は本発明の一実施例の構成図であり、
101はソースプログラム、102はコンパイラ、10
4はコンパイルユニット、106は静止点への復帰処理
ルーチン(以下単に復帰処理ルーチンと称す)、108
はコンパイルオプションである。なお、図1中、実線の
矢印はデータの流れを、破線の矢印は制御の流れをそれ
ぞれ示している。
FIG. 1 is a block diagram of one embodiment of the present invention.
101 is a source program, 102 is a compiler, 10
4 is a compile unit, 106 is a return processing routine to a stationary point (hereinafter simply referred to as a return processing routine), 108
Is a compile option. In FIG. 1, solid arrows indicate data flows, and broken arrows indicate control flows.

【0015】本実施例のファイル破壊防止機構は、図1
に示すように、ソースプログラム101を翻訳するコン
パイラ102中にインタフェース情報設定手段103を
設けると共に、復帰処理ルーチン106中に静止点への
復帰可/不可判定手段(以下、単に判定手段と称す)1
07を設けてある。
The file destruction prevention mechanism of the present embodiment is shown in FIG.
As shown in (1), an interface information setting means 103 is provided in a compiler 102 for translating a source program 101, and a return enable / disable determination means (hereinafter simply referred to as determination means) 1 in a return processing routine 106 is provided.
07 is provided.

【0016】コンパイラ102は、利用者によって作成
されたソースプログラム101を入出力して構文解析,
意味解析等を行い、最終的にソースプログラム101に
従ったコンパイルユニット(目的プログラム)104を
生成出力するものである。また、このコンパイラ102
は、コンパイルオプション108によってソースプログ
ラム101が自動コミットメント制御機能を利用するこ
とを指定している場合には、ソースプログラム101中
で使用しているファイルのうち静止点の確立処理が可能
なファイルに対し自動的に適当な箇所で静止点の確立処
理を行うと共にデッドロック発生時には自動的に静止点
への復帰処理(ロールバック処理)を行うような自動コ
ミットメント制御ロジックをコンパイルユニット104
に埋め込む機能を有している。
The compiler 102 inputs and outputs the source program 101 created by the user, performs syntax analysis,
It performs semantic analysis and the like, and finally generates and outputs a compile unit (target program) 104 according to the source program 101. Also, this compiler 102
If the compile option 108 specifies that the source program 101 uses the automatic commitment control function, the file used in the source program 101 for which a quiesce point can be established The compile unit 104 implements automatic commitment control logic that automatically establishes a quiesce point at an appropriate place and automatically performs a return process (rollback process) to a quiesce point when a deadlock occurs.
It has a function to embed in.

【0017】コンパイラ102中のインタフェース情報
設定手段103は、コンパイラ102が翻訳しようとす
るソースプログラム101が自動コミットメント制御機
能を利用するプログラムである場合、その中に静止点確
立処理が不可能なファイルが存在するか否かを判定し、
存在する場合にはコンパイラ102の出力であるコンパ
イルユニット104中に生成される、外部ルーチンとの
インタフェース情報105へ静止点への復帰を禁止する
情報を設定する手段である。図2はこのインタフェース
情報設定手段103の処理の一例を示す。なお、静止点
の確立処理が可能なファイルか否かは自動コミットメン
ト制御の対象となるファイルであるか否かと同様にして
判断されるものであり、例えば静止点確立処理可能なフ
ァイル装置の種別やファイル編成法等を事前に保持しそ
れらと各ファイルのファイル装置の種別やファイル編成
法等を比較することにより行う。
If the source program 101 to be translated by the compiler 102 is a program that uses the automatic commitment control function, the interface information setting means 103 in the compiler 102 includes files in which a quiesce point establishment process cannot be performed. Determine if it exists,
This is a means for setting information prohibiting return to a quiescent point to interface information 105 with an external routine, which is generated in the compile unit 104 which is an output of the compiler 102 when it exists. FIG. 2 shows an example of the processing of the interface information setting means 103. Whether or not the file can be subjected to the quiesce point establishment process is determined in the same manner as whether or not the file is a target of the automatic commitment control. This is performed by holding the file organization method and the like in advance and comparing them with the file device type and file organization method of each file.

【0018】なお、本実施例ではソースプログラム10
1が自動コミットメント制御機能を利用するからにはそ
の中に静止点確立処理可能なファイルが少なくとも1つ
存在していることを前提としており、そのため1つでも
静止点確立処理不可能なファイルが存在すれば、静止点
確立処理可能なファイルと静止点確立処理不可能なファ
イルとが混在するものと判断している。勿論、静止点確
立処理可能なファイルの存在と静止点確立処理不可能な
ファイルの存在とを両方確かめるようにしても良い。
In this embodiment, the source program 10
1 uses the automatic commitment control function, it is assumed that there is at least one file in which quiesce point establishment processing can be performed. Therefore, if at least one file incapable of quiesce point establishment processing exists, In this case, it is determined that there are files that can be processed to establish a quiesce point and files that cannot be processed to establish a quiesce point. Of course, it is also possible to confirm both the existence of a file for which still point establishment processing is not possible and the existence of a file for which still point establishment processing is not possible.

【0019】復帰処理ルーチン106は、デッドロック
が発生したときに静止点への復帰処理を行うためにコン
パイルユニット104から呼び出される外部ルーチンで
ある。
The return processing routine 106 is an external routine called from the compiling unit 104 to perform a return processing to a quiescent point when a deadlock occurs.

【0020】復帰処理ルーチン106中の判定手段10
7は、コンパイルユニット104の実行中にデッドロッ
クが発生したことにより復帰処理ルーチン106が呼び
出された場合に、呼び出し元であるコンパイルユニット
104内のインタフェース情報105を参照して静止点
への復帰が禁止されているか否かを判定し、禁止されて
いる場合には復帰処理ルーチン106の処理を打ち切っ
て、図示しないオペレーティングシステムに対しコンパ
イルユニットを異常終了させる旨を指示する手段であ
る。図3は、この判定手段107の処理の一例を示す。
Determination means 10 in return processing routine 106
7, when the return processing routine 106 is called due to the occurrence of a deadlock during the execution of the compile unit 104, the return to the quiesce point is performed by referring to the interface information 105 in the compile unit 104 that is the caller. This is a means for determining whether or not the compile unit is prohibited, and in the case where the compile unit is prohibited, terminates the processing of the return processing routine 106 and instructs an operating system (not shown) to abnormally terminate the compile unit. FIG. 3 shows an example of the processing of the determination means 107.

【0021】次に上述のように構成された本実施例の動
作を各図を参照して説明する。
Next, the operation of the embodiment constructed as described above will be described with reference to the drawings.

【0022】コンパイラ102がソースプログラム10
1およびコンパイルオプション108を入力してコンパ
イルユニット104を生成する翻訳処理の過程におい
て、ソースプログラム101が自動コミットメント制御
機能を利用する場合には、従来と同様に自動コミットメ
ント制御ロジックが生成されると共に、コンパイラ10
2中のインタフェース情報設定手段103が起動され
る。
The compiler 102 executes the source program 10
When the source program 101 uses the automatic commitment control function in the course of the translation process of generating the compile unit 104 by inputting the "1" and the compile option 108, the automatic commitment control logic is generated as in the related art. Compiler 10
2 is started.

【0023】インタフェース情報設定手段103は起動
されると、図2に示す処理を行う。即ち、コンパイラ1
02が現在翻訳処理を行っているソースプログラム10
1内にジャーナルが取れない等の理由で静止点の確立処
理が不可能なファイルが1つでも存在するか否かを判定
する(ステップ201)。そのようなファイルが全く存
在しなければ(ステップ201でNO)、図2の処理を
終了する。
When activated, the interface information setting means 103 performs the processing shown in FIG. That is, compiler 1
02 is the source program 10 currently performing the translation process
It is determined whether there is at least one file in which the establishment of the quiesce point cannot be performed because the journal cannot be obtained in step 1 (step 201). If no such file exists (NO in step 201), the processing in FIG. 2 ends.

【0024】しかし、静止点確立処理が不可能なファイ
ルが1つでも存在していれば(ステップ201でYE
S)、コンパイラ102がソースプログラム101を翻
訳することにより生成したコンパイルユニット104内
の、実行時に外部ルーチンから参照される情報であるイ
ンタフェース情報105に、静止点への復帰処理を禁止
するという情報を設定し(ステップ202)、図2の処
理を終える。
However, if there is at least one file for which still point establishment processing is impossible (YE at step 201)
S), in the compile unit 104 generated by translating the source program 101 by the compiler 102, information indicating that the returning process to the quiesce point is prohibited is included in the interface information 105 which is information referred to from the external routine at the time of execution. The setting is made (step 202), and the processing of FIG. 2 is completed.

【0025】さて、コンパイラ102がソースプログラ
ム101を翻訳して生成したコンパイルユニット104
の実行処理中に、デッドロックが発生すると、内部の自
動コミットメント制御ロジックによって、外部ルーチン
である復帰処理ルーチン106が呼び出される。
A compiling unit 104 generated by translating the source program 101 by the compiler 102
When a deadlock occurs during the execution process, the internal automatic commitment control logic calls the return routine 106 which is an external routine.

【0026】復帰処理ルーチン106は、呼び出される
と、先ず内部の判定手段107を動作させる。
When called, the return processing routine 106 first operates the internal determination means 107.

【0027】判定手段107は、図3に示すように、呼
び出し元である現在実行処理中のコンパイルユニット1
04内のインタフェース情報105を参照して、静止点
への復帰処理が禁止されているか否かを判定する(ステ
ップ301)。禁止されていない場合(ステップ301
でNO)、図3の処理を終了する。復帰処理ルーチン1
06は、これにより静止点への復帰にかかる本来の処理
を実行し、その終了後に制御をコンパイルユニット10
4へ戻す。
As shown in FIG. 3, the judging means 107, as shown in FIG.
With reference to the interface information 105 in 04, it is determined whether or not the process of returning to the stationary point is prohibited (step 301). If not prohibited (step 301
NO), the process of FIG. 3 ends. Return processing routine 1
06 executes the original processing related to the return to the stationary point, and controls the compile unit 10 after the completion.
Return to 4.

【0028】他方、静止点への復帰が禁止されている場
合(ステップ301でYES)、判定手段107は復帰
処理ルーチン106の実行を打ち切ると共に図示しない
オペレーティングシステムに対しコンパイルユニット1
04を異常終了させる指示を出し(ステップ302)、
図3の処理を終了する。これによって復帰処理ルーチン
106による静止点への復帰は行われず、コンパイルユ
ニット104は異常終了する。なお、異常終了後の処置
は各利用者に任される。
On the other hand, if the return to the stationary point is prohibited (YES in step 301), the determination means 107 terminates the execution of the return processing routine 106 and sends the compile unit 1 to the operating system (not shown).
04 is abnormally terminated (step 302).
The process of FIG. 3 ends. As a result, the return to the stationary point by the return processing routine 106 is not performed, and the compile unit 104 ends abnormally. It should be noted that the action after the abnormal termination is left to each user.

【0029】また、コンパイルユニット104の実行処
理中にデッドロックが発生しなかった場合は復帰処理ル
ーチン106の呼び出しは行われず、他に障害がなけれ
ばコンパイルユニット104は最後まで実行されて正常
終了することになる。
If no deadlock occurs during the execution of the compiling unit 104, the return processing routine 106 is not called, and if there is no other failure, the compiling unit 104 is executed to the end and ends normally. Will be.

【0030】[0030]

【発明の効果】以上説明した本発明のファイル破壊防止
機構は、自動コミットメント制御機能を利用するソース
プログラムの翻訳時にそのソースプログラムに静止点確
立処理可能なファイルと不可能なファイルとが混在して
いることによりデッドロック発生時の復帰処理によって
ファイル破壊を招来する可能性が存在すると判定した場
合にはコンパイルユニット内のインタフェース情報に静
止点への復帰を禁止する情報を設定し、コンパイルユニ
ットの実行時に若しデッドロックが発生した場合、イン
タフェース情報が静止点への復帰を禁止しているときに
、静止点確立処理が可能なファイルについて復帰処理
を打ち切ってコンパイルユニットを異常終了させるの
で、自動コミットメント制御機能を利用するプログラム
のデッドロック発生時にファイル破壊が生じるのを防止
することができる。
According to the file destruction prevention mechanism of the present invention described above, when a source program using an automatic commitment control function is translated, a file that can be processed to establish a quiesce point and a file that cannot be processed are mixed in the source program. If it is determined that there is a possibility of causing file destruction due to the return process when a deadlock occurs due to the presence of a deadlock, set information that prohibits return to a quiesce point in the interface information in the compile unit and execute the compile unit Sometimes, if a deadlock occurs, and if the interface information prohibits the return to the quiesce point, the compile unit terminates abnormally and terminates the compile unit abnormally for files for which quiesce point establishment processing is possible. Deadlock of a program that uses functions It is possible to prevent the file destruction occurs.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【図2】インタフェース情報設定手段103の処理の一
例を示す流れ図である。
FIG. 2 is a flowchart illustrating an example of a process of an interface information setting unit 103;

【図3】静止点への復帰可/不可判定手段107の処理
の一例を示す流れ図である。
FIG. 3 is a flowchart illustrating an example of a process of a return enable / disable determination unit 107 for returning to a stationary point;

【符号の説明】[Explanation of symbols]

101…ソースプログラム 108…コ
ンパイルオプション 102…コンパイラ 103…インタフェース情報設定手段 104…コンパイルユニット 105…インタフェース情報 106…静止点への復帰処理ルーチン 107…静止点への復帰可/不可判定手段
101: Source program 108: Compile option 102: Compiler 103: Interface information setting means 104: Compile unit 105: Interface information 106: Routine processing routine for restoring to a stationary point 107: Meaning for determining whether or not restoration to a stationary point is possible

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 12/00 531 G06F 9/45 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 12/00 531 G06F 9/45

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 自動コミットメント制御機能を利用する
ソースプログラムについてはソースプログラム中で使用
しているファイルのうち静止点の確立処理が可能なファ
イルに対し自動的に静止点の確立処理を行うと共にデッ
ドロック発生時には静止点への復帰処理を行うような自
動コミットメント制御ロジックを埋め込んだ目的プログ
ラムを生成するコンパイラに設けられ、前記ソースプロ
グラム中に静止点確立処理が不可能なファイルが存在す
るか否かを判定し、存在することによりコンパイルユニ
ット中に生成される外部ルーチンとのインタフェース情
報へ静止点への復帰を禁止する情報を設定する手段と、 前記コンパイルユニットの実行時にデッドロックが発生
したときに静止点への復帰処理を行うために前記コンパ
イルユニットから呼び出される外部ルーチン内に設けら
れ、呼び出し元のインタフェース情報を参照し静止点へ
の復帰が禁止されていることにより、静止点確立処理が
可能なファイルについて復帰処理を打ち切って前記コン
パイルユニットを異常終了させる手段とを含むファイル
破壊防止機構。
1. For a source program using an automatic commitment control function, a quiesce point establishment process is automatically performed for a file that can be subjected to a quiesce point establishment process among files used in the source program, and a dead point is set. It is provided in a compiler for generating a target program in which automatic commitment control logic for performing a return process to a quiesce point when a lock occurs is provided, and whether or not a file in which a quiesce point establishment process cannot be performed exists in the source program. Means for setting information prohibiting return to a quiesce point to interface information with an external routine generated in the compilation unit due to the existence thereof, and when a deadlock occurs during execution of the compilation unit From the compile unit to perform the return process to the static point Provided in the external routines issued beauty, by referring to return to quiescent point is prohibited calling interface information, the still point establishment process
Means for terminating return processing for a possible file and terminating the compile unit abnormally.
JP3084772A 1991-03-25 1991-03-25 File destruction prevention mechanism Expired - Fee Related JP3018549B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3084772A JP3018549B2 (en) 1991-03-25 1991-03-25 File destruction prevention mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3084772A JP3018549B2 (en) 1991-03-25 1991-03-25 File destruction prevention mechanism

Publications (2)

Publication Number Publication Date
JPH04295933A JPH04295933A (en) 1992-10-20
JP3018549B2 true JP3018549B2 (en) 2000-03-13

Family

ID=13839972

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3084772A Expired - Fee Related JP3018549B2 (en) 1991-03-25 1991-03-25 File destruction prevention mechanism

Country Status (1)

Country Link
JP (1) JP3018549B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07101399B2 (en) * 1988-12-29 1995-11-01 日本電気株式会社 Database deadlock processing method

Also Published As

Publication number Publication date
JPH04295933A (en) 1992-10-20

Similar Documents

Publication Publication Date Title
US6675295B1 (en) Method and computer system for detecting and correcting a failure in a computer application program during startup
US7114184B2 (en) System and method for restoring computer systems damaged by a malicious computer program
US7207034B2 (en) Undo infrastructure
US6698016B1 (en) Method for injecting code into another process
JP4372228B2 (en) System, apparatus and method for detection and removal of viruses in macros
US20070028225A1 (en) Method and apparatus for preemptive monitoring of software binaries by instruction interception and dynamic recompilation
US20030005168A1 (en) System and method for auditing system call events with system call wrappers
JPH07146788A (en) System and method for preparing virus diagnostic mechanism and virus diagnostic mechanism and diagnostic method
AU2002250453A1 (en) System and method for restoring computer systems damaged by a malicious computer program
US7617418B2 (en) Method and system for verifying and storing documents during a program failure
US20070245322A1 (en) System and method for interactive and assisted program development
JP2004303114A (en) Interpreter and native code execution method
US6957367B2 (en) System and method for controlling activity of temporary files in a computer system
US20020023224A1 (en) Computer software installation
JP3018549B2 (en) File destruction prevention mechanism
WO2024031864A1 (en) Automatic restoration method and system for vxworks system startup failure, storage medium, and device
US6581156B1 (en) Method for recording a data state in a data processing system
JP2797749B2 (en) File destruction pre-check mechanism
JP3103397B2 (en) System for preventing illegal use of programs
KR102683445B1 (en) Method for android malicious app record and replay, recording medium and device for performing the method
JPH02178855A (en) Dead lock processing system for data base
KR100216533B1 (en) The event history recording method for the deterministic replay of concurrent chill program
CN114706707A (en) Method, device, equipment and storage medium for dynamically modifying log level
JPH01220055A (en) Control system for information processing program
JPH1165886A (en) Program debugging system of computer

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees