JPH07104814B2 - Invalid data detection method - Google Patents

Invalid data detection method

Info

Publication number
JPH07104814B2
JPH07104814B2 JP6136693A JP6136693A JPH07104814B2 JP H07104814 B2 JPH07104814 B2 JP H07104814B2 JP 6136693 A JP6136693 A JP 6136693A JP 6136693 A JP6136693 A JP 6136693A JP H07104814 B2 JPH07104814 B2 JP H07104814B2
Authority
JP
Japan
Prior art keywords
attribute information
read
pointer
read pointer
double
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 - Lifetime
Application number
JP6136693A
Other languages
Japanese (ja)
Other versions
JPH06250917A (en
Inventor
一昭 六澤
Original Assignee
工業技術院長
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 工業技術院長 filed Critical 工業技術院長
Priority to JP6136693A priority Critical patent/JPH07104814B2/en
Publication of JPH06250917A publication Critical patent/JPH06250917A/en
Publication of JPH07104814B2 publication Critical patent/JPH07104814B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、記憶装置の所定の領域
に割り付けられた構造体(データセル)が、既に参照さ
れなくなったことを検出し、メモリの有効利用を図るた
めの無効データ検出方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention detects that a structure (data cell) allocated to a predetermined area of a storage device is no longer referenced and detects invalid data for effective use of memory. Regarding the method.

【0002】[0002]

【従来の技術】情報処理装置には、演算処理のためのデ
ータを記憶する記憶装置が設けられる。この記憶装置に
データを書き込む場合には、記憶装置の空き領域に対し
データを適当な単位に分割しながら割り付け、書き込み
を行う。このような領域を構造体と呼ぶ。例えば、単一
代入言語で記述されたプログラムは並列処理に適する。
このプログラム実行中に生成された構造体は同時進行す
る各処理により何回も参照されることがある。なお、記
憶装置に割り付けられた各構造体は、書き込みポインタ
と読出しポインタによって参照する。このような処理を
進める場合に、参照されなくなった構造体を直ちに検出
して新たなメモリ資源に組み入れ、資源の有効利用を図
る必要がある。そこで、構造体が参照されなくなったこ
とを速やかに検出する方法が紹介されている。
2. Description of the Related Art An information processing apparatus is provided with a storage device for storing data for arithmetic processing. When writing data to this storage device, the data is allocated and written into an empty area of the storage device while dividing the data into appropriate units. Such a region is called a structure. For example, a program written in a single assignment language is suitable for parallel processing.
The structure generated during the execution of this program may be referred to many times by each processing that proceeds at the same time. Each structure allocated to the storage device is referenced by a write pointer and a read pointer. When proceeding with such processing, it is necessary to immediately detect a structure that is no longer referenced and incorporate it into a new memory resource so that the resource can be effectively used. Therefore, a method for promptly detecting that the structure is no longer referenced is introduced.

【0003】図2に、従来のポインタと構造体の関係説
明図を示す。記憶装置の所定の領域に割り付けられた構
造体3は、この図に示すように、それぞれ任意の数のポ
インタ1により参照される。(a)は2個のポインタ1
が1個の構造体3を参照している例を示す。各ポインタ
1には、それぞれ図の(c)に示す属性情報2が設けら
れている。この属性情報は、オンまたはオフの状態を示
す1ビットの情報で、後で説明する構造体3の属性情報
と組み合わせて、この構造体3が参照されなかったこと
を検出するために用いられる情報である。なお、各ポイ
ンタ1は読出しあるいは書き込み等任意の目的に使用さ
れる。ここで、(a)に示すように、まず1個の構造体
3に対し2本のポインタ1が設定されている場合には、
その属性情報2はオフとする。また、(b)に示すよう
に、1個の構造体3に対し3本以上のポインタ1が設定
されている場合は属性情報2はオンとする。
FIG. 2 is a diagram for explaining the relationship between a conventional pointer and a structure. The structure 3 allocated to a predetermined area of the storage device is referred to by an arbitrary number of pointers 1 as shown in this figure. (A) shows two pointers 1
Shows an example in which one refers to one structure 3. Each pointer 1 is provided with attribute information 2 shown in FIG. This attribute information is 1-bit information indicating an on or off state, and is information used in combination with the attribute information of the structure 3 described later to detect that the structure 3 is not referred to. Is. Each pointer 1 is used for any purpose such as reading or writing. Here, as shown in (a), first, when two pointers 1 are set for one structure 3,
The attribute information 2 is turned off. Further, as shown in (b), when three or more pointers 1 are set for one structure 3, the attribute information 2 is turned on.

【0004】図3に、従来のポインタのコピー操作説明
図を示す。上記のようなポインタ1は、コピーによって
増加させることができる。即ち、ポインタが1本以上存
在する場合には、その内の1本をコピーして任意の数の
新たなポインタを設けることができる。各ポインタは1
回の書き込みや読出しによって消滅するため、同一の構
造体に対し何回も参照が行なわれる場合にはこのように
ポインタを増加させる。まず、図3(a)に示すよう
に、1個の構造体3に対し1本のポインタ1が設定され
ている場合は、その属性情報2はオフとなっている。し
かしながら、このポインタ1をコピーして2本に増加さ
せた場合、図に示すように増加後の2本のポインタ1の
属性情報2はオンに切り替えられる。これも、後で説明
するように、構造体が参照されなくなったことを検出す
るための工夫である。(b)は元のポインタの属性情報
がオンの場合を示している。例えば、図2の(b)に示
すように、属性情報2がオンのポインタ1によって構造
体3が何回か参照されると、図に示すように属性情報2
がオンのポインタ1が1本だけ残る状態となる。このよ
うな状態でポインタ1をコピーして2本に増加させた場
合には属性情報2はオンのままとする。
FIG. 3 is a diagram for explaining a conventional pointer copy operation. The pointer 1 as described above can be increased by copying. That is, when there are one or more pointers, one of them can be copied to provide an arbitrary number of new pointers. Each pointer is 1
It is erased by writing and reading a number of times, and thus the pointer is incremented in this way when the same structure is referenced many times. First, as shown in FIG. 3A, when one pointer 1 is set for one structure 3, its attribute information 2 is off. However, when the pointer 1 is copied and increased to two, the attribute information 2 of the two increased pointers 1 is switched on as shown in the figure. This is also a device for detecting that the structure is no longer referenced, as will be described later. (B) shows a case where the attribute information of the original pointer is on. For example, as shown in FIG. 2B, when the structure 1 is referenced several times by the pointer 1 in which the attribute information 2 is on, the attribute information 2 is displayed as shown in FIG.
Only one pointer 1 with is on remains. When the pointer 1 is copied and increased to two in such a state, the attribute information 2 remains on.

【0005】図4に、従来の場合の構造体の属性情報説
明図を示す。構造体が参照されなくなったことを検出す
るために、この従来の例では、構造体3の側にも属性情
報4を設ける。そして、図4(a)に示すように、属性
情報2がオフのポインタ1により構造体3を参照した場
合、その構造体3の属性情報4はオフとされる。また
(b)に示すように、属性情報2がオンのポインタ1を
用いて構造体3を参照した場合には、構造体3の属性情
報4はオンとされる。なお、以下の説明では各構造体は
(c)に示すような表現で図示される。
FIG. 4 is an explanatory diagram of attribute information of a structure in the conventional case. In order to detect that the structure is no longer referenced, the attribute information 4 is also provided on the structure 3 side in this conventional example. Then, as shown in FIG. 4A, when the structure 1 is referenced by the pointer 1 whose attribute information 2 is off, the attribute information 4 of the structure 3 is turned off. Further, as shown in (b), when the structure 3 is referenced using the pointer 1 whose attribute information 2 is on, the attribute information 4 of the structure 3 is turned on. In addition, in the following description, each structure is illustrated by an expression as shown in (c).

【0006】図5に、従来の無効データ検出方法例説明
図を示す。この図に示す従来の方法では、属性情報2が
オフのポインタ1により読出した構造体3の属性情報4
がオフであれば、その構造体3はもはや参照されなくな
ったものと判断する。逆にその構造体3がまだ参照され
る可能性のある場合には、ポインタ1あるいは構造体3
の属性情報2〜4の何れかがオンとなっている。このよ
うな判断基準によって無効データの検出が行なわれる。
FIG. 5 shows an example of a conventional invalid data detection method. In the conventional method shown in this figure, the attribute information 4 of the structure 3 read by the pointer 1 whose attribute information 2 is off is read.
Is off, it is determined that the structure 3 is no longer referenced. On the contrary, when the structure 3 may still be referred to, the pointer 1 or the structure 3
Any of the attribute information 2 to 4 is turned on. Invalid data is detected based on such a criterion.

【0007】即ち、図5(a)に示すように、例えば属
性情報2がオフである2本のポインタ1が1個の構造体
3を参照しているものとする。この場合、一方のポイン
タ1によって構造体3が参照されると、そのポインタ1
は消滅し、図の(b)に示すように、構造体3に対しポ
インタ1が1本だけ設定された構成となる。ここで、
(a)において、属性情報2がオフのポインタ1により
構造体3の参照が行なわれた結果、(b)のように、構
造体3の属性情報4はオフになっている。従って、図5
(b)に示す状態でポインタ1により構造体3を参照す
ると、ちょうど属性情報2がオフのポインタ1により属
性情報4がオフの構造体3を参照した状態となる。これ
によって、(c)に示すように、その構造体3は最後の
ポインタ1により参照された後、参照されなくなったと
いうことが直ちに検出される。
That is, as shown in FIG. 5A, it is assumed that, for example, two pointers 1 whose attribute information 2 is off refer to one structure 3. In this case, when the structure 3 is referenced by one pointer 1, the pointer 1
Disappears, and only one pointer 1 is set for the structure 3 as shown in FIG. here,
As a result of referring to the structure 3 by the pointer 1 in which the attribute information 2 is off in (a), the attribute information 4 of the structure 3 is off as shown in (b). Therefore, FIG.
When the structure 1 is referred to by the pointer 1 in the state shown in FIG. 3B, the pointer 1 whose attribute information 2 is off is referred to the structure 3 whose attribute information 4 is off. As a result, as shown in (c), it is immediately detected that the structure 3 is no longer referenced after being referenced by the last pointer 1.

【0008】図6に、従来の場合で構造体がまだ参照さ
れ得ることの検出を行なう場合の説明図を示す。図6
(a)に示すように、例えば属性情報2がオフのポイン
タ1が2本存在する場合を考える。ここで、(b)に示
すように、一方のポインタ1がコピーされ、合計3本に
増えたとする。この場合、コピーされて増えたポインタ
1は、その属性情報2がオンとされる。従って、3本の
ポインタ1の1本の属性情報2はオフ、他の2本の属性
情報2はオンという状態になる。
FIG. 6 shows an explanatory view in the case of detecting that the structure can still be referred to in the conventional case. Figure 6
As shown in (a), consider a case where, for example, there are two pointers 1 whose attribute information 2 is off. Here, as shown in (b), it is assumed that one pointer 1 is copied and the total number is increased to three. In this case, the attribute information 2 of the pointer 1 copied and increased is turned on. Therefore, one piece of attribute information 2 of the three pointers 1 is off, and the other two pieces of attribute information 2 are on.

【0009】次に、(c)に示すように、属性情報2が
オフのポインタ1によって構造体3が1回参照され、そ
のポインタ1が消滅すると、属性情報2がオンのポイン
タ1が2本残る。この時構造体3の属性情報4はオフと
されている。このような状態では、その後どちらのポイ
ンタ1を使用して構造体3を参照したとしても、構造体
3が参照されなくなったという判断をするための基準、
即ちポインタも構造体もその属性情報の値がオフである
という条件を満足しない。
Next, as shown in (c), the structure 3 is referenced once by the pointer 1 whose attribute information 2 is off, and when that pointer 1 disappears, two pointers 1 whose attribute information 2 is on are displayed. Remain. At this time, the attribute information 4 of the structure 3 is turned off. In such a state, no matter which pointer 1 is used to refer to the structure 3 thereafter, a criterion for determining that the structure 3 is no longer referred to,
That is, neither the pointer nor the structure satisfies the condition that the value of the attribute information is off.

【0010】(d)は、(b)の状態において、属性情
報2がオンのポインタ1を1回使用して構造体3を参照
した後の状態を示す。この場合、(d)では属性情報2
がオフのポインタ1と属性情報2がオンのポインタ1が
それぞれ1本ずつ存在する。このようなケースにおいて
も、その後いずれのポインタ1を使用して構造体3を参
照しても、両者の属性情報がオフである条件を満足しな
い。従って、従来、図5に示したケースの場合にのみ構
造体が参照されなくなったことを検出するといった方法
が採用されていた。
(D) shows the state after referring to the structure 3 by using the pointer 1 with the attribute information 2 turned on once in the state of (b). In this case, in (d), the attribute information 2
There is one pointer 1 for which is off and one pointer 1 for which attribute information 2 is on. Even in such a case, even if any of the pointers 1 is used to refer to the structure 3 thereafter, the condition that the attribute information of both is off is not satisfied. Therefore, conventionally, a method of detecting that the structure is no longer referenced has been adopted only in the case shown in FIG.

【0011】[0011]

【発明が解決しようとする課題】ところで、上記のよう
な従来の方法では、ポインタの総数が3本以上の場合
や、ポインタの総数が2本であっても、図6(c)や
(d)に示したような状態になると、構造体の参照され
なくなったことの検出は不可能になる。従って、もし同
一の構造体に対し多数の参照ポインタが生成されるよう
なプログラムを実行する場合には、別の方法によって参
照されなくなった構造体を検出し、資源の回収を図る必
要が生じてしまう。しかしながら、上記のような従来の
方法は、小さなオーバーヘッドで迅速に資源回収を図る
方法として利用価値が高く、一層の改良が望まれる。本
発明は以上の点に着目してなされたもので、ポインタに
一定の情報を付加することにより、構造体が参照されな
くなったことを即時に検出することができる無効データ
検出方法を提供することを目的とするものである。
By the way, according to the conventional method as described above, even when the total number of pointers is three or more, or even when the total number of pointers is two, as shown in FIG. When the state shown in () is reached, it becomes impossible to detect that the structure is no longer referenced. Therefore, if you execute a program that generates many reference pointers to the same structure, it is necessary to detect the structure that is no longer referenced by another method and recover the resources. I will end up. However, the conventional method as described above has high utility value as a method for quickly collecting resources with a small overhead, and further improvement is desired. The present invention has been made in view of the above points, and provides an invalid data detection method capable of immediately detecting that a structure is no longer referenced by adding certain information to a pointer. The purpose is.

【0012】[0012]

【課題を解決するための手段】本発明無効データ検出方
法は、記憶装置の所定の領域に割り付けられた構造体
が、既に参照されなくなったことを検出して、前記記憶
装置の所定の領域を開放するために使用されるものであ
って、前記構造体の割付時には、書込みポインタと、必
要な数の読出しポインタとを設定し、書込みポインタは
1個の構造体につき1本しか存在せず、読出しポインタ
は1個の構造体に対し任意の数だけ存在し、コピーによ
り増加させることができ、前記読出しポインタはSIN
GLE、DOUBLE、又はMANYという意味の3種
類の属性情報を持ち、前記構造体はSINGLE又はD
OUBLEという意味の2種類の属性情報を持ち、前記
構造体と共に前記読出しポインタが1本生成される場合
には、その読出しポインタの属性情報をSINGLEに
設定し、前記構造体と共に前記読出しポインタが2本生
成される場合には、その読出しポインタの属性情報をD
OUBLEに設定し、前記構造体と共に前記読出しポイ
ンタが3本以上生成される場合には、その読出しポイン
タの属性情報をMANYに設定し、属性情報をSING
LEに設定した読出しポインタがコピーにより2本に増
加する場合には、各読出しポインタの属性情報をDOU
BLEに変更し、属性情報をDOUBLEに設定した読
出しポインタがコピーにより3本以上に増加する場合に
は、各読出しポインタの属性情報をMANYに変更し、
前記構造体への書込みが行なわれたときは構造体の属性
情報をSINGLEとし、属性情報をSINGLEに設
定した読出しポインタにより構造体の読出しがあったと
きは、その構造体が参照されなくなったことを検出し、
属性情報をDOUBLEに設定した読出しポインタによ
り構造体の読出しがあったときは、構造体の属性情報が
SINGLEならDOUBLEに変更し、属性情報をD
OUBLEに設定した読出しポインタにより属性情報が
DOUBLEの構造体の読出しがあったときは、その構
造体は参照されなくなったことを検出することを特徴と
するものである。
According to the method for detecting invalid data of the present invention, it is detected that a structure allocated to a predetermined area of a storage device is no longer referred to, and the predetermined area of the storage device is detected. It is used for releasing, and at the time of allocating the structure, a write pointer and a necessary number of read pointers are set, and there is only one write pointer per one structure, There can be any number of read pointers for one structure, and the number of read pointers can be increased by copying.
It has three types of attribute information meaning GLE, DOUBLE, or MANY, and the structure is SINGLE or D.
If there is two types of attribute information meaning OUBLE and one read pointer is generated with the structure, the attribute information of the read pointer is set to SINGLE, and the read pointer is set to 2 with the structure. When this is generated, the attribute information of the read pointer is set to D
If the read pointer is set to OUBLE and three or more read pointers are generated together with the structure, the attribute information of the read pointer is set to MANY and the attribute information is SING.
When the read pointers set in LE are increased to two by copying, the attribute information of each read pointer is set to DOU.
When the number of read pointers whose attribute information is set to DOUBLE is increased to three or more by changing to BLE, the attribute information of each read pointer is changed to MANY,
When the structure is written, the attribute information of the structure is set to SINGLE, and when the structure is read by the read pointer having the attribute information set to SINGLE, the structure is no longer referred to. Detect
When the structure is read by the read pointer in which the attribute information is set to DOUBLE, if the structure attribute information is SINGLE, it is changed to DOUBLE and the attribute information is set to D.
When a structure whose attribute information is DOUBLE is read by the read pointer set to OUBLE, the fact that the structure is no longer referenced is detected.

【0013】[0013]

【作用】この方法では、書き込みポインタと3種類の読
出しポインタとを識別するために、WRITE、SIN
GLE、DOUBLE、MANYという2ビットの属性
情報を与える。また、構造体にはSINGLEまたはD
OUBLEの1ビットの属性情報を与える。そして、構
造体の属性情報はデータの書き込み直後SINGLEと
し、属性情報がDOUBLEの読出しポインタにより読
出しがあると、構造体の属性情報はSINGLEからD
OUBLEに変更される。構造体が参照されなくなった
ことを検出する条件は、属性情報をSINGLEに設定
した読出しポインタより読み出された場合と、属性情報
をDOUBLEに設定した読出しポインタにより属性情
報がDOUBLEの構造体の読出しがあったときとす
る。これにより、書き込みポインタと読出しポインタの
合計が3本ある場合も、構造体が参照されなくなったこ
とを直ちに検出できる。
In this method, in order to identify the write pointer and the three types of read pointers, WRITE, SIN
2-bit attribute information of GLE, DOUBLE, and MANY is given. In addition, SINGLE or D for the structure
Gives 1-bit attribute information of OUBLE. Then, the attribute information of the structure is set to SINGLE immediately after writing the data, and when the attribute information is read by the read pointer of DOUBLE, the attribute information of the structure is changed from SINGLE to D.
Changed to OUBLE. The condition for detecting that the structure is no longer referenced is that the attribute information is read from the read pointer whose attribute information is set to SINGLE and that the structure whose attribute information is DOUBLE is read from the attribute information read pointer that is set to DOUBLE. When there is. As a result, even when there are three write pointers and three read pointers in total, it is possible to immediately detect that the structure is no longer referenced.

【0014】[0014]

【実施例】以下、本発明を図の実施例を用いて詳細に説
明する。図1は本発明の無効データ検出方法説明図であ
る。まず、本発明においては、各ポインタを書き込みポ
インタと読出しポインタとに明確に区別し、読出しポイ
ンタには3種類の内容の属性情報を付加する。図1の
(a)に、その属性情報の定義を示す。構造体7を参照
するために設けられる読出しポインタ8には、属性情報
9が設けられる。この属性情報9は、SINGLE、D
OUBLE、MANYの3種類となる。このSINGL
Eの属性情報は、構造体7とともに読出しポインタ8が
1本生成される場合に設定される。また、DOUBLE
の属性情報は、構造体7と共に読出しポインタ8が2本
生成される場合に設定される。更に、MANYの属性情
報は、構造体7と共に読出しポインタ8が3本以上生成
される場合に設定される。これを識別するために、図で
はSINGLEの属性情報は白丸、DOUBLEの属性
情報は黒丸、MANYの属性情報は×印を用いて示し
た。なお、これらの属性情報は、例えば2ビットのデー
タにより表現され、SINGLEは“01”、DOUB
LEは“10”、MANYは“11”というように表わ
される。なお、属性情報が“00”の場合は読出しポイ
ンタであることを示すものとする。
The present invention will be described in detail below with reference to the embodiments shown in the drawings. FIG. 1 is an explanatory diagram of an invalid data detection method of the present invention. First, in the present invention, each pointer is clearly distinguished into a write pointer and a read pointer, and attribute information having three kinds of contents is added to the read pointer. FIG. 1A shows the definition of the attribute information. Attribute information 9 is provided in the read pointer 8 provided to refer to the structure 7. This attribute information 9 is SINGLE, D
There are three types, OUBLE and MANY. This SINGL
The attribute information of E is set when one read pointer 8 is generated together with the structure 7. Also, DOUBLE
The attribute information of is set when two read pointers 8 are generated together with the structure 7. Further, the MANY attribute information is set when three or more read pointers 8 are generated together with the structure 7. In order to identify this, in the figure, the attribute information of SINGLE is indicated by a white circle, the attribute information of DOUBLE is indicated by a black circle, and the attribute information of MANY is indicated by an X mark. The attribute information is represented by 2-bit data, for example, SINGLE is “01”, DOUB.
LE is represented as “10” and MANY is represented as “11”. In addition, when the attribute information is "00", it indicates a read pointer.

【0015】一方、構造体7にも同様の属性情報10が
設けられる。この構造体7の属性情報9は、後で詳しく
説明するが、データの書き込みが行なわれた場合にはS
INGLEとし、属性情報がDOUBLEのポインタに
より読出しがあったときはSINGLEからDOUBL
Eに変更されるものとする。図1の(b)及び(c)
は、本発明によって参照されなくなったことを検出され
る構造体の例を示している。この本題の説明を行なう前
に、まず図7以下を用いて具体的に各ポインタや属性情
報、構造体の構成等を説明していく。
On the other hand, the structure 7 is also provided with similar attribute information 10. The attribute information 9 of the structure 7 will be described in detail later, but when data is written, S
INGLE and when the attribute information is read by the pointer of DOUBLE, SINGLE to DOUBL
It shall be changed to E. 1 (b) and (c)
Shows an example of a structure that is detected as no longer referenced by the present invention. Before describing this subject, first, the respective pointers, attribute information, and the structure of the structure will be specifically described with reference to FIGS.

【0016】図7に、本発明による書き込み、読出しポ
インタ説明図を示す。図の(a)に示すように、本発明
においては書き込みポインタ6は、1個の構造体7につ
いて1本しか存在しないものとする。そして、書き込み
ポインタ6は、先に説明した読出しポインタとはその属
性情報によって明確に区別される。なお、書込みポイン
タ6の属性情報は常にWRITEとなるため、以下の図
ではその属性情報の図示を省略した。また、図7(b)
に示すように、構造体7を参照するための読出しポイン
タ8は、コピーにより任意の数に増加させることができ
る。なお、(c)に示すように、書き込みポインタ6の
参照には二重線の矢印を用い、読出しポインタ8による
参照の場合と区別して図示した。
FIG. 7 is an explanatory view of the write / read pointer according to the present invention. As shown in (a) of the figure, in the present invention, it is assumed that only one write pointer 6 exists for one structure 7. The write pointer 6 is clearly distinguished from the read pointer described above by its attribute information. Since the attribute information of the write pointer 6 is always WRITE, the illustration of the attribute information is omitted in the following figures. In addition, FIG.
The read pointer 8 for referencing the structure 7 can be increased to any number by copying, as shown in FIG. As shown in (c), a double-lined arrow is used to refer to the write pointer 6 and is shown separately from the case of reference by the read pointer 8.

【0017】図8に、本発明によるポインタの属性情報
説明図を示す。図8(a)に示すように、構造体7へデ
ータを書き込み、それを参照するためには、基本的にこ
の図に示すように書込みポインタ6及び読出しポインタ
8がそれぞれ1本ずつ設けられる。このように読出しポ
インタ8が1本だけ生成された場合には、その属性情報
9はSINGLEとされている。一方、図8(b)に示
すように、読出しポインタ8が同時に2本生成された場
合には、その属性情報9はDOUBLEに設定する。更
に(c)に示すように、読出しポインタ8が3本以上同
時に生成された場合、その属性情報9はMANYに設定
される。(d)には、以下の説明において使用する書込
みポインタ6や読出しポインタ8及びその属性情報の形
状を定義している。
FIG. 8 shows a pointer attribute information explanatory diagram according to the present invention. As shown in FIG. 8A, in order to write data to the structure 7 and refer to it, basically one write pointer 6 and one read pointer 8 are provided as shown in this figure. When only one read pointer 8 is generated in this way, the attribute information 9 is SINGLE. On the other hand, as shown in FIG. 8B, when two read pointers 8 are simultaneously generated, the attribute information 9 is set to DOUBLE. Further, as shown in (c), when three or more read pointers 8 are generated at the same time, the attribute information 9 is set to MANY. In (d), the shapes of the write pointer 6 and the read pointer 8 and their attribute information used in the following description are defined.

【0018】図9に、本発明によるポインタのコピー動
作説明図を示す。図9(a)に示すように、初めに構造
体7に対し読出しポインタ8が1本存在し、その属性情
報9がSINGLEである場合に、この読出しポインタ
8がコピーされて2本になるケースがある。このような
ケースでは、読出しポインタ8の属性情報9はSING
LEからDOUBLEに変更される。また、図9(b)
に示すように、初めに1本だけ設けられていた読出しポ
インタ8がコピーによって3本以上に増加する場合があ
る。この場合には読出しポインタ8の属性情報9はSI
NGLEからMANYに変更される。
FIG. 9 is a diagram for explaining the pointer copy operation according to the present invention. As shown in FIG. 9A, when there is one read pointer 8 for the structure 7 and the attribute information 9 is SINGLE, the read pointer 8 is copied into two. There is. In such a case, the attribute information 9 of the read pointer 8 is SING.
Changed from LE to DOUBLE. Also, FIG. 9 (b)
As shown in, there is a case where the read pointer 8 which is initially provided only once is increased to three or more by copying. In this case, the attribute information 9 of the read pointer 8 is SI
Changed from NGLE to MANY.

【0019】更に(c)に示すように、1個の構造体7
に対し1本の読出しポインタ8が存在し、その属性情報
がDOUBLEのケースがある。これは図9(a)に示
すように、属性情報9がDOUBLEの2本の読出しポ
インタ8の何れか一方を用いて、構造体7が参照された
後に発生する。この(c)のケースで、読出しポインタ
8がコピーにより増加した場合には、図に示すように、
読出しポインタ8の属性情報9はMANYに変更され
る。また(d)に示すように、属性情報9がMANYの
読出しポインタ8がコピーされて増加した場合には、そ
の属性情報はMANYとする。
Further, as shown in (c), one structure 7
However, there is a case where there is one read pointer 8 and the attribute information is DOUBLE. This occurs after the structure 7 is referenced by using one of the two read pointers 8 of DOUBLE as the attribute information 9, as shown in FIG. 9A. In the case of (c), when the read pointer 8 is increased by copying, as shown in the figure,
The attribute information 9 of the read pointer 8 is changed to MANY. Further, as shown in (d), when the read pointer 8 of MANY for the attribute information 9 is copied and increased, the attribute information is set to MANY.

【0020】図10に、1つの構造体を指す読出しポイ
ンタのパターン説明図を示す。本発明を実施する場合
に、読出しポインタに着目すると、1つの構造体を参照
するために、図に示すような(a)〜(d)のパターン
が存在する。まず、(a)は、属性情報9がSINGL
Eの読出しポインタ8が1本だけ存在する場合である。
また、(b)は、属性情報9がDOUBLEの読出しポ
インタ8が2本だけ存在する場合である。(c)のパタ
ーンは、属性情報9がDOUBLEの読出しポインタ8
と属性情報9がMANYの2本以上の読出しポインタ8
が存在する場合である。(d)は、属性情報9がMAN
Yの読出しポインタ8が4本以上存在する場合である。
本発明を実施する場合には、読出しポインタ8は、これ
らの何れかのパターンを取り得る。
FIG. 10 shows a pattern explanatory diagram of a read pointer that points to one structure. When implementing the present invention, focusing on the read pointer, there are patterns (a) to (d) as shown in the figure in order to refer to one structure. First, in (a), the attribute information 9 is SINGL.
This is a case where only one read pointer 8 of E exists.
Further, (b) is a case where there are only two read pointers 8 whose attribute information 9 is DOUBLE. In the pattern (c), the read pointer 8 whose attribute information 9 is DOUBLE
And two or more read pointers 8 whose attribute information 9 is MANY
Is present. In (d), the attribute information 9 is MAN
This is a case where there are four or more Y read pointers 8.
In practicing the invention, the read pointer 8 can take any of these patterns.

【0021】図11に、本発明による構造体の属性情報
説明図を示す。図11の(a)に示すように、本発明を
実施する場合、構造体7の属性情報10は、書き込みポ
インタ6により構造体7にデータが書き込まれた場合に
SINGLEとなる。また、(b)に示すように、属性
情報9がDOUBLEの読出しポインタ8によって構造
体7が参照された場合、その属性情報10はSINGL
EからDOUBLEに変更される。これによって、構造
体7の属性情報10がSINGLEであるということ
は、まだその構造体について読出し操作が行なわれてい
ないか、あるいは属性情報がMANYの読出しポインタ
を経由して読出し操作が1回以上行なわれているかの何
れかとなる。なお、属性情報がMANYの読出しポイン
タによる参照の際には構造体の属性情報は変化しない。
FIG. 11 is an explanatory view of attribute information of a structure according to the present invention. As shown in FIG. 11A, in the case of implementing the present invention, the attribute information 10 of the structure 7 becomes SINGLE when the data is written in the structure 7 by the write pointer 6. Further, as shown in (b), when the attribute information 9 refers to the structure 7 by the DOUBLE read pointer 8, the attribute information 10 is SINGL.
Changed from E to DOUBLE. As a result, the fact that the attribute information 10 of the structure 7 is SINGLE means that the read operation has not yet been performed for that structure, or that the read operation is performed once or more via the read pointer whose attribute information is MANY. It is either being done. The attribute information of the structure does not change when the attribute information is referred to by the read pointer of MANY.

【0022】また、構造体7の属性情報10がDOUB
LEであるということは、属性情報がDOUBLEであ
る読出しポインタ8を経由した読出し操作が1回だけ行
なわれているか、あるいは属性情報がDOUBLEの読
出しポインタ8を経由した読出し操作が1回行なわれ、
更に属性情報がMANYの読出しポインタを経由した読
出し操作が1回以上行なわれている場合である。
The attribute information 10 of the structure 7 is DOUB.
Being LE means that a read operation via the read pointer 8 whose attribute information is DOUBLE is performed only once, or a read operation via the read pointer 8 whose attribute information is DOUBLE is performed once,
Further, it is a case where the read operation via the read pointer whose attribute information is MANY is performed once or more.

【0023】上記のような属性情報等の設定により、本
発明においては次のようなケースで構造体が参照されな
くなったことを検出できる。図1に戻って、(b)に
は、属性情報9がSINGLEの読出しポインタ8が1
本存在する構造体7の例が示されている。この構造体7
は、書き込みにより属性情報10がSINGLEとなっ
ている。本発明においては、このように属性情報9をS
INGLEに設定した読出しポインタ8によって属性情
報10がSINGLEの構造体7が参照された場合、そ
の構造体はもはや参照されなくなったということを検出
する。
By setting the attribute information and the like as described above, it can be detected in the present invention that the structure is no longer referenced in the following cases. Returning to FIG. 1, the read pointer 8 whose attribute information 9 is SINGLE is 1 in FIG.
An example of the present structure 7 is shown. This structure 7
Causes the attribute information 10 to be SINGLE. In the present invention, the attribute information 9 is S
When the attribute information 10 refers to the SINGLE structure 7 by the read pointer 8 set to INGLE, it is detected that the structure is no longer referenced.

【0024】一方、(c)に示すように、初めに属性情
報9がDOUBLEの読出しポインタ8が2本ある場合
を考える。このときの構造体7の属性情報10はSIN
GLEである。ここで、1本の読出しポインタ8により
構造体7が参照されると、その読出しポインタ8は消滅
し、属性情報9がDOUBLEの読出しポインタ8が1
本だけ残る。また、構造体7の属性情報10は、既に図
11の(b)を用いて説明したようにSINGLEから
DOUBLEに変更される。その後、属性情報9がDO
UBLEの読出しポインタ8によって属性情報10がD
OUBLEの構造体7が参照された場合に、その構造体
7はもはや参照されなくなったと検出する。即ち、本発
明の方法では、図1(b)及び(c)に示す2種のケー
スにおいて、構造体が参照されなくなったことを検出で
きる。従って、(c)に示すケースについて、従来より
も無効データ検出が可能なパターンが増加する。
On the other hand, as shown in (c), first, consider a case where there are two read pointers 8 whose attribute information 9 is DOUBLE. At this time, the attribute information 10 of the structure 7 is SIN.
It is GLE. Here, when the structure 7 is referenced by one read pointer 8, the read pointer 8 disappears and the read pointer 8 whose attribute information 9 is DOUBLE is 1
Only books remain. Further, the attribute information 10 of the structure 7 is changed from SINGLE to DOUBLE as already described with reference to FIG. After that, the attribute information 9 is DO
The attribute information 10 is set to D by the read pointer 8 of UBLE.
When the OUBLE structure 7 is referenced, it detects that the structure 7 is no longer referenced. That is, the method of the present invention can detect that the structure is no longer referenced in the two cases shown in FIGS. 1 (b) and 1 (c). Therefore, in the case shown in (c), the number of patterns in which invalid data can be detected increases as compared with the conventional case.

【0025】図12に、本発明による無効データ検出方
法具体例説明図を示す。図12(a)は、図1(b)に
示したケースの構造体生成時からの経緯を示すものであ
る。この図に示すように、構造体7を生成する場合に、
この例では書き込みポインタ6と読出しポインタ8とが
1本ずつ生成されている。従って、この場合の読出しポ
インタ8の属性情報9はSINGLEとされている。こ
こで、構造体7に書き込みポインタ6を用いてデータが
書き込まれると、書き込みポインタ6は消滅し1本の読
出しポインタ8が残る。この属性情報9はSINGLE
となっている。また、構造体7の属性情報10はデータ
の書き込みによってSINGLEとなっている。従っ
て、共に属性情報9あるいは10がSINGLEの状態
で、読出しポインタ8がその後構造体7を参照すると、
上記説明した本発明の検出条件を満足する。これによっ
て、構造体7がその後参照されないことが検出される。
なお、このケースは図2(a)に示す従来方法と等価で
あり、この点について従来方法に比べた特別の改善はな
い。
FIG. 12 is a diagram for explaining a concrete example of the invalid data detection method according to the present invention. FIG. 12A shows the process from the time when the structure of the case shown in FIG. 1B was created. As shown in this figure, when the structure 7 is generated,
In this example, one write pointer 6 and one read pointer 8 are generated. Therefore, the attribute information 9 of the read pointer 8 in this case is SINGLE. Here, when data is written in the structure 7 using the write pointer 6, the write pointer 6 disappears and one read pointer 8 remains. This attribute information 9 is SINGLE
Has become. The attribute information 10 of the structure 7 is SINGLE by writing the data. Therefore, when the attribute information 9 or 10 is SINGLE and the read pointer 8 subsequently refers to the structure 7,
The detection conditions of the present invention described above are satisfied. This detects that the structure 7 is not subsequently referenced.
It should be noted that this case is equivalent to the conventional method shown in FIG. 2A, and there is no special improvement in this point compared with the conventional method.

【0026】一方、図12(b)に示すように、当初構
造体7に対し1本の書き込みポインタ6と1本の読出し
ポインタ8が生成されたものとする。この時読出しポイ
ンタ8の属性情報9はSINGLEである。しかしなが
ら、その後読出しポインタ8がコピーされ2本に増加し
たとする。この場合、読出しポインタ8の属性情報9は
DOUBLEとなる。その後、構造体7に書き込みポイ
ンタ6を用いてデータが書き込まれると、構造体7の属
性情報10はSINGLEとなる。
On the other hand, as shown in FIG. 12B, it is assumed that one write pointer 6 and one read pointer 8 are generated for the initial structure 7. At this time, the attribute information 9 of the read pointer 8 is SINGLE. However, it is assumed that the read pointer 8 is subsequently copied and increased to two. In this case, the attribute information 9 of the read pointer 8 becomes DOUBLE. After that, when the data is written in the structure 7 using the write pointer 6, the attribute information 10 of the structure 7 becomes SINGLE.

【0027】ここで、2本の読出しポインタ8の内1本
を用いて構造体7を参照すると、その後属性情報9がD
OUBLEの読出しポインタ8が1本残る。また、構造
体7の属性情報10はSINGLEからDOUBLEに
変更される。このような状態で、その後読出しポインタ
8により構造体7が参照されると、先に説明した本発明
による検出条件を満足し、構造体7がその後参照されな
いことが検出される。従って、このようなパターンで
は、従来構造体が参照されなくなったことが検出不可能
であったが、それを本発明により可能としている。
When the structure 7 is referred to by using one of the two read pointers 8, the attribute information 9 is D
One OUBLE read pointer 8 remains. Further, the attribute information 10 of the structure 7 is changed from SINGLE to DOUBLE. In such a state, when the structure 7 is subsequently referred to by the read pointer 8, it is detected that the detection condition according to the present invention described above is satisfied and the structure 7 is not subsequently referred to. Therefore, in such a pattern, it is impossible to detect that the structure is no longer referred to, but the present invention makes it possible.

【0028】図13に、本発明の方法が適用できない例
の説明図を示す。本発明の方法は、次のようなケースに
は適用することはできない。この例では、構造体7に対
し初めに書き込みポインタ6と2本の読出しポインタ8
が生成されている。この場合、属性情報9はDOUBL
Eとされている。ところが、その後読出しポインタ8の
1本がコピーされ、読出しポインタ8が合計3本となっ
た。このケースでは、コピーに使用された読出しポイン
タ8とコピーによって増加した読出しポインタ8とは、
何れもその属性情報9がMANYとされ、この状態で構
造体7に書き込みポインタ6を用いてデータが書き込ま
れると、構造体7の属性情報10はSINGLEとな
る。更に、読出しポインタ8の内の属性情報がMANY
の読出しポインタが参照に使用されると、図に示すよう
に2本の読出しポインタ8が残り、その属性情報9は一
方がDOUBLE、一方がMANYとなっている。そし
て、その次に属性情報9がDOUBLEの読出しポイン
タ8が使用されて構造体7の参照が行なわれると、最後
に属性情報9がMANYの読出しポインタ8が1本残
る。この場合、その後残りの1本の読出しポインタ8を
用いて構造体7を参照したとしても上記の条件を満足し
ない。
FIG. 13 is an explanatory view of an example to which the method of the present invention cannot be applied. The method of the present invention cannot be applied to the following cases. In this example, first the write pointer 6 and the two read pointers 8 are added to the structure 7.
Is being generated. In this case, the attribute information 9 is DOUBL
It is said to be E. However, after that, one of the read pointers 8 was copied, and the total number of read pointers 8 was three. In this case, the read pointer 8 used for copying and the read pointer 8 increased by copying are
In each case, the attribute information 9 is set to MANY, and when data is written in the structure 7 using the write pointer 6 in this state, the attribute information 10 of the structure 7 becomes SINGLE. Furthermore, the attribute information in the read pointer 8 is MANY
When the read pointer is used for reference, two read pointers 8 remain as shown in the figure, and one of the attribute information 9 is DOUBLE and one is MANY. Then, when the structure 7 is referenced by using the read pointer 8 of DOUBLE for the attribute information 9 next, one read pointer 8 for which the attribute information 9 is MANY remains at the end. In this case, even if the structure 7 is referred to by using the remaining one read pointer 8, the above condition is not satisfied.

【0029】従って、属性情報がDOUBLEの読出し
ポインタがコピー等により更に増加した場合には、残り
の読出しポインタの数を属性情報によって明確に表わす
ことができないため、最終的に最後に残った読出しポイ
ンタによって構造体の参照が行なわれたとしても、これ
が最後であるかどうかを区別することができない。本発
明の方法では、MANYの属性情報を持つ読出しポイン
タが混在する場合には構造体が参照されなくなったこと
の検出をすることができなくなる。
Therefore, when the read pointer whose attribute information is DOUBLE is further increased due to copying or the like, the number of the remaining read pointers cannot be clearly expressed by the attribute information, and finally the last read pointer remains. Even if a structure reference is made by, it is not possible to distinguish whether this is the last. According to the method of the present invention, it becomes impossible to detect that the structure is no longer referenced when the read pointers having the attribute information of many are mixed.

【0030】本発明は以上の実施例に限定されない。上
記実施例においては、ポインタの区別のためにSING
LE、DOUBLE、MANYといった表現を用いた
が、この表現は必ずしもこれに限定されることはなく自
由に設定して差し支えない。要するに、このような属性
情報によって、読出しポインタが2個かあるいはそれ以
上存在するかを区別することに意義がある。また、読出
しポインタと構造体の属性情報を何れもSINGLEあ
るいはDOUBLEといった表現を用いたが、これらに
ついても、全く別の表現を用いて差し支えない。
The present invention is not limited to the above embodiments. In the above embodiment, SING is used to distinguish the pointers.
Although expressions such as LE, DOUBLE, and MANY are used, this expression is not necessarily limited to this and may be freely set. In short, it is significant to distinguish whether there are two or more read pointers by such attribute information. Further, although the expression such as SINGLE or DOUBLE is used for both the read pointer and the attribute information of the structure, a completely different expression may be used for these as well.

【0031】[0031]

【発明の効果】以上説明した本発明の無効データ検出方
法は、構造体を生成する際、同時に生成される書き込み
ポインタや読出しポインタに対し、書き込みポインタで
あるか読出しポインタであるかの区別と同時に、生成さ
れた読出しポインタの数や、その後の読出しポインタの
コピー状態を示すSINGLE、DOUBLE、MAN
Yといった意味の属性情報を付加し、構造体の側にも書
き込みが行なわれた直後の状態と、属性情報をDOUB
LEに設定した読出しポインタにより読出しがあった場
合とを区別する、SINGLEあるいはDOUBLEと
いう意味の属性情報をもたせるようにしたので、これら
の属性情報の組み合せによって、属性情報をSINGL
Eに設定した読出しポインタにより構造体の読出しがあ
ったときと、属性情報をDOUBLEに設定した読出し
ポインタにより属性情報がDOUBLEの構造体の読出
しがあったときについて、それぞれその構造体が参照さ
れなくなったことを検出することができる。これによ
り、ポインタにごくわずかの情報を付加することによっ
て、参照されなくなった構造体を即時に検出し、記憶装
置の所定の領域に割り付けられた構造体を解放してメモ
リの速やかな有効利用を図ることができる。
According to the invalid data detection method of the present invention described above, when a structure is generated, it is possible to distinguish between a write pointer and a read pointer which are generated at the same time as a write pointer or a read pointer. , SINGLE, DOUBLE, MAN indicating the number of read pointers generated and the copy state of the read pointers thereafter.
Attribute information such as Y is added, and the state immediately after writing is performed on the structure side and the attribute information
Since the attribute information having the meaning of SINGLE or DOUBLE that distinguishes the case of reading by the read pointer set in LE is provided, the attribute information is combined with the SINGL attribute information by a combination of these attribute information.
When the structure is read by the read pointer set to E and when the structure of which the attribute information is DOUBLE is read by the read pointer whose attribute information is set to DOUBLE, the structure is no longer referred to. Can be detected. As a result, by adding a very small amount of information to the pointer, a structure that is no longer referenced is immediately detected, and the structure allocated to a prescribed area of the storage device is released to enable quick and effective use of memory. Can be planned.

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

【図1】本発明による無効データ検出方法説明図であ
る。
FIG. 1 is an explanatory diagram of an invalid data detection method according to the present invention.

【図2】従来のポインタと構造体の関係説明図である。FIG. 2 is a diagram for explaining the relationship between a conventional pointer and a structure.

【図3】従来のポインタのコピー操作説明図である。FIG. 3 is an explanatory diagram of a conventional pointer copy operation.

【図4】従来の構造体の属性情報説明図である。FIG. 4 is an explanatory diagram of attribute information of a conventional structure.

【図5】従来の無効データ検出方法例説明図である。FIG. 5 is a diagram illustrating an example of a conventional invalid data detection method.

【図6】従来の「まだ参照され得る」ことの検出説明図
である。
FIG. 6 is a diagram illustrating detection of “can still be referred to” in the related art.

【図7】本発明による書き込み、読出しポインタ説明図
である。
FIG. 7 is an explanatory diagram of a write / read pointer according to the present invention.

【図8】本発明によるポインタの属性情報説明図であ
る。
FIG. 8 is an explanatory diagram of attribute information of a pointer according to the present invention.

【図9】本発明によるポインタのコピー動作説明図であ
る。
FIG. 9 is an explanatory diagram of a pointer copy operation according to the present invention.

【図10】1つの構造体を指す読出しポインタのパター
ン説明図である。
FIG. 10 is a pattern explanatory diagram of a read pointer that points to one structure.

【図11】本発明による構造体の属性情報説明図であ
る。
FIG. 11 is an explanatory diagram of attribute information of a structure according to the present invention.

【図12】本発明による無効データ検出方法具体例説明
図である。
FIG. 12 is a diagram illustrating a specific example of the invalid data detection method according to the present invention.

【図13】本発明の方法が適用できない例説明図であ
る。
FIG. 13 is an explanatory diagram of an example to which the method of the present invention cannot be applied.

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

7 構造体 8 読出しポインタ 9 ポインタの属性情報 10 構造体の属性情報 7 structure 8 read pointer 9 attribute information of pointer 10 attribute information of structure

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 記憶装置の所定の領域に割り付けられた
構造体が、既に参照されなくなったことを検出して、前
記記憶装置の所定の領域を開放するために使用されるも
のであって、 前記構造体の割付時には、書込みポインタと、必要な数
の読出しポインタとを設定し、 書込みポインタは1個の構造体につき1本しか存在せ
ず、 読出しポインタは1個の構造体に対し任意の数だけ存在
し、コピーにより増加させることができ、 前記読出しポインタはSINGLE、DOUBLE、又
はMANYという意味の3種類の属性情報を持ち、 前記構造体はSINGLE又はDOUBLEという意味
の2種類の属性情報を持ち、 前記構造体と共に前記読出しポインタが1本生成される
場合には、その読出しポインタの属性情報をSINGL
Eに設定し、 前記構造体と共に前記読出しポインタが2本生成される
場合には、その読出しポインタの属性情報をDOUBL
Eに設定し、 前記構造体と共に前記読出しポインタが3本以上生成さ
れる場合には、その読出しポインタの属性情報をMAN
Yに設定し、 属性情報をSINGLEに設定した読出しポインタがコ
ピーにより2本に増加する場合には、各読出しポインタ
の属性情報をDOUBLEに変更し、 属性情報をDOUBLEに設定した読出しポインタがコ
ピーにより3本以上に増加する場合には、各読出しポイ
ンタの属性情報をMANYに変更し、 前記構造体への書込みが行なわれたときは構造体の属性
情報をSINGLEとし、 属性情報をSINGLEに設定した読出しポインタによ
り構造体の読出しがあったときは、その構造体が参照さ
れなくなったことを検出し、 属性情報をDOUBLEに設定した読出しポインタによ
り構造体の読出しがあったときは、構造体の属性情報が
SINGLEならDOUBLEに変更し、 属性情報をDOUBLEに設定した読出しポインタによ
り属性情報がDOUBLEの構造体の読出しがあったと
きは、その構造体は参照されなくなったことを検出する
ことを特徴とする無効データ検出方法。
1. A structure used for releasing a predetermined area of a storage device by detecting that a structure allocated to the predetermined area of the storage device is no longer referred to, At the time of allocating the structure, a write pointer and a necessary number of read pointers are set, and there is only one write pointer per structure, and the read pointer is arbitrary for one structure. The read pointer has three types of attribute information meaning SINGLE, DOUBLE, or MANY, and the structure has two types of attribute information meaning SINGLE or DOUBLE. If one read pointer is generated together with the structure, the attribute information of the read pointer is SINGL.
When the read pointer is set to E and two read pointers are generated together with the structure, the attribute information of the read pointer is DOUBL.
If the read pointer is set to E and three or more read pointers are generated together with the structure, the attribute information of the read pointer is set to MAN.
If the number of read pointers set to Y and the attribute information set to SINGLE increases to two by copying, the attribute information of each read pointer is changed to DOUBLE, and the read pointer set to DOUBLE attribute information is copied. When the number is increased to 3 or more, the attribute information of each read pointer is changed to MANY, and when the structure is written, the attribute information of the structure is set to SINGLE and the attribute information is set to SINGLE. When the structure is read by the read pointer, it is detected that the structure is no longer referenced, and when the structure is read by the read pointer whose attribute information is set to DOUBLE, the structure attribute is read. If the information is SINGLE, change it to DOUBLE and set the attribute information to DOUBLE. Invalid data detection method attribute information when a reading of the structure of DOUBLE is characterized in that its structure to detect that it is no longer referenced by.
JP6136693A 1993-02-26 1993-02-26 Invalid data detection method Expired - Lifetime JPH07104814B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6136693A JPH07104814B2 (en) 1993-02-26 1993-02-26 Invalid data detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6136693A JPH07104814B2 (en) 1993-02-26 1993-02-26 Invalid data detection method

Publications (2)

Publication Number Publication Date
JPH06250917A JPH06250917A (en) 1994-09-09
JPH07104814B2 true JPH07104814B2 (en) 1995-11-13

Family

ID=13169101

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6136693A Expired - Lifetime JPH07104814B2 (en) 1993-02-26 1993-02-26 Invalid data detection method

Country Status (1)

Country Link
JP (1) JPH07104814B2 (en)

Also Published As

Publication number Publication date
JPH06250917A (en) 1994-09-09

Similar Documents

Publication Publication Date Title
US4403285A (en) System for automatically releasing a dead lock state in a data processing system
KR100413915B1 (en) Computer system based on microprocessor, its driving method and backup system therefor
US8578105B2 (en) Using type stability to facilitate contention management
JP2746734B2 (en) Access processing method for stream file
JPH07104814B2 (en) Invalid data detection method
CN110874273B (en) Data processing method and device
JPS63200257A (en) Program loading system for computer
JPS6220583B2 (en)
US20020004811A1 (en) Systems, Methods and computer program products for controlling and visualizing processes
JPH0247735A (en) Computer device
JP3130798B2 (en) Bus transfer device
CN107135265A (en) Secondary storage buffer data management method and device based on sea of clouds OS systems
JPS60254335A (en) Multiplex processing system in software test
JPH0410143A (en) Garbage collection method
JP3085309B2 (en) Debug system
JPS62264335A (en) Resources controller
JPH04195565A (en) Dump output system
JPH0756835A (en) Communication processing system
JPH0391055A (en) Method for setting hardware lock, hardware lock controller, method and device for detecting hardware lock
JPS59180639A (en) Method for interrupting execution of program
JPS63104146A (en) Controlling system for resource
JPS61123953A (en) Virtual object control method
JPS63173144A (en) Control system for actual time garbage collection
JPH0744356A (en) Device and method for sort processing
JPS6361699B2 (en)

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term