JPH025156A - Virtual object memory control system - Google Patents

Virtual object memory control system

Info

Publication number
JPH025156A
JPH025156A JP63157286A JP15728688A JPH025156A JP H025156 A JPH025156 A JP H025156A JP 63157286 A JP63157286 A JP 63157286A JP 15728688 A JP15728688 A JP 15728688A JP H025156 A JPH025156 A JP H025156A
Authority
JP
Japan
Prior art keywords
size
storage medium
saved
read
secondary storage
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
JP63157286A
Other languages
Japanese (ja)
Inventor
Shin Nakajima
中島 震
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 JP63157286A priority Critical patent/JPH025156A/en
Publication of JPH025156A publication Critical patent/JPH025156A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)
  • Memory System (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To attain efficient saving processing by controlling information for finding out an object to be saved. CONSTITUTION:The size of an object read out from a secondary storage medium is found, the 1st object 40 to be traced from the entry of a route table 10 coincident with the size is saved in the secondary storage medium and another object is read out from the secondary medium to a real storage area occupied by the saved object 40. The read object 40 is added to the end of a list to be traced from the entry of the table 10. Since the information for determining the object to be saved is controlled, efficient receding processing can be executed.

Description

【発明の詳細な説明】 し産業上の利用分野〕 本発明は仮想オブジェクトメモリ管理方式、特にオブジ
ェクトと呼ぶ一連の連続記憶領域を論理的な操作単位と
するオブジェクト指向言語の処理方式において、実記憶
領域よりも大きな記憶領域を使用するための仮想オブジ
ェクトメモリ管理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a virtual object memory management system, particularly an object-oriented language processing system in which a series of contiguous storage areas called objects is used as a logical unit of operation. This invention relates to a virtual object memory management method for using a storage area larger than the area.

し従来の技術〕 代表的なオブジェクト指向言侍であるSmalltal
k−80の処理系では実記憶領域にあるオブジェクトを
一連の連続記憶領域として管理する。第2図は前記オブ
ジェクト領域の管理方法を説明する図ある。第2図にお
いてオブジェクトテーブル20はオブジェクトに与えら
れる識別子を管理するテーブルであり、実記憶領域21
にオブジェクトの実体に対応する連続領域211,21
2が取られている0本図に2いてオブジェクト211は
識別子2111によりオブジェクトテーブル20中の番
地情報202を介して、オブジェク)211−診照する
(参考文献:A、ゴールドバーグ、D、ロビンソン/S
malltalk−80,AddisonWesley
、1983年発行、p、541−)。
[Conventional technology] Small, a typical object-oriented language
The k-80 processing system manages objects in the real storage area as a series of continuous storage areas. FIG. 2 is a diagram explaining the method of managing the object area. In FIG. 2, an object table 20 is a table that manages identifiers given to objects, and a real storage area 21
Continuous areas 211, 21 corresponding to the substance of the object
The object 211 in this figure is identified by the identifier 2111 via the address information 202 in the object table 20. S
malltalk-80, Addison Wesley
, published in 1983, p. 541-).

また、狭い実記憶領域を有効に利用するために、二次記
憶媒体を活用した仮想オブジェクトメモリ方式が考えら
れている。第3図は、仮想オブジェクトメモリ′U理方
式を説明する図である。第3図に2いて番地情報203
が指す実記憶領域中には間接ポインタ領域31があり、
前記間接ポインタ領域31が二?に記憶媒体30内に退
避されたオブジェクト実体301 f、参照する0番地
情報203が指すオブジェクトが必要になった場合、間
接ポインタ31が持つ番地1#報311i−利用してオ
ブジェクトの実体301を実記憶領域中に読込む操作r
行なう。
Furthermore, in order to effectively utilize a narrow real storage area, a virtual object memory system that utilizes a secondary storage medium has been considered. FIG. 3 is a diagram illustrating the virtual object memory management method. 2 in Figure 3, address information 203
There is an indirect pointer area 31 in the real storage area pointed to by
Is the indirect pointer area 31 2? When the object entity 301f saved in the storage medium 30 and the object pointed to by the referenced address information 203 are needed, the object entity 301 is executed using the address 1# information 311i held by the indirect pointer 31. Operation to read into storage area r
Let's do it.

ここで、二次記憶媒体30からオブジェクトを実記憶領
域に読込むときに読込むオブジェクトにとって十分な領
域を確保できない場合、必要性の低いオブジェクトを一
時的に二次記憶媒体30に退避して、前記読込むオブジ
ェクトのための領域を確保する必要がある(参考文献二
G、クラスナ/Sma11talk−80,Addis
on−Wesley 。
Here, when reading an object from the secondary storage medium 30 to the real storage area, if sufficient space cannot be secured for the object to be read, the less necessary objects are temporarily evacuated to the secondary storage medium 30, It is necessary to secure an area for the object to be read (References 2G, Krasna/Sma11talk-80, Addis
on-Wesley.

1983年発行、p、251−)。Published in 1983, p. 251-).

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

ところが、従来の手法では、退追すべきオブジェクトを
決定するための情報r管理していなかったために、効率
の良い退避処理ができないという問題点がめる。
However, in the conventional method, there is a problem that efficient evacuation processing cannot be performed because information r for determining objects to be evicted is not managed.

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

本発明の仮想オブジェクトメモリ管理方式に、オブジェ
クト指向言語処理方式に2いて、一連の連続記憶領域か
らなる使用中のオブジェクトをこのオブジェクトの領域
が占有する大きさに従って分類するルートテーブルと、
このルートテーブルから同じ大きさのオブジェクトを読
出す迄めに1固々のオブジェクト領域に持ったリンケー
ジ情報と、オブジェクトの大きさを指定することにより
前記ルートテーブルとリンケージ情報とから該当の大き
さを持つオブジェクトを決定する選択手段と金有するこ
とによ多構成される。
In the virtual object memory management method of the present invention, the object-oriented language processing method includes a route table that classifies objects in use consisting of a series of contiguous storage areas according to the size occupied by the area of this object;
Before reading objects of the same size from this route table, by specifying the linkage information held in a single object area and the size of the object, the corresponding size is calculated from the route table and linkage information. It consists of a selection means to decide which objects to have and a multi-purpose method.

〔作用〕[Effect]

二次記憶媒体から読込むオブジェクトの大きさを求め、
この大きさに一致するルートテーブルのエントリから辿
ることのできる最初のオブジェクトを二次記憶媒体に退
避し、この退避されたオブジェクトが占有していた実記
憶領域に、前記オブジェクトを二次記憶媒体から愼込む
、読込んだオブジェクトをルートテーブルのエントリか
ら辿れるリストの最後尾に追加する。
Find the size of the object to be read from the secondary storage medium,
The first object that can be traced from the route table entry that matches this size is saved to a secondary storage medium, and the object is transferred from the secondary storage medium to the real storage area occupied by this saved object. Adds the read object to the end of the list traced from the root table entry.

〔実施例〕〔Example〕

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

第1図は本発明の一実施例の構成図である。第1図にお
いて、ルートテーブル10は対応するオブジェクトの大
きさごとに一意的に定まるエントリからすり、各エント
リは先頭ポインタ(100゜11O)と末尾ポインタ(
101,111)とから構成されている0図に示すよう
に、オブジェクト120等はオブジェクトの内部情報全
格納する領域と別に同一の太ささのオブジェクトtつな
ぐリンク情報を持ち、ポインタによってオブジェクト1
20゜121.122のように結合されている。ここで
、二次記憶媒体からオブジェクトを実記憶領域に読込む
ときに、読込むオブジェクトにとって十分な領域を確保
できない場合には、必要性の低いオブジェクトを一時的
に二次記憶媒体に退避して、読込むオブジェクトのため
の領域を確保する必要がある。
FIG. 1 is a block diagram of an embodiment of the present invention. In FIG. 1, the route table 10 consists of entries that are uniquely determined for each size of the corresponding object, and each entry has a start pointer (100° 110) and an end pointer (
101, 111), an object 120, etc. has link information that connects an object t of the same thickness in addition to an area for storing all internal information of the object.
They are connected like 20°121.122. When reading an object from the secondary storage medium to the real storage area, if sufficient space cannot be secured for the object to be read, temporarily save the less necessary objects to the secondary storage medium. , it is necessary to reserve space for the object to be read.

二次記憶媒体から読込むオブジェクトの犬ぎさが、先頭
ポインタ100が参照するオブジェクトの大きさに一致
すると仮定して説明する。読込むオブジェクトの大きさ
を元にして、ルートテーブル10t−走査して、先頭ポ
インタ100を得る。この先頭ポインタ100から辿る
ことが可能なオブジェクトからひとつを選択して、この
選択されたオブジェクトを二次記憶媒体に退避した後に
、退避されたオブジェクトが占有していた領域に読込む
べきオブジェクトを読込む。第4図は本処理過程を拌細
に説明する図である。第41祷において、二次記憶媒体
から読込むオブジェクトの大きさによってルートテーブ
ル10のエントリが選択される。
The description will be made assuming that the size of the object read from the secondary storage medium matches the size of the object referenced by the head pointer 100. Based on the size of the object to be read, the route table 10t is scanned to obtain the head pointer 100. After selecting one of the objects that can be traced from this head pointer 100 and saving this selected object to a secondary storage medium, the object to be read is read into the area occupied by the saved object. It's crowded. FIG. 4 is a diagram explaining the present processing process in detail. At the 41st request, an entry in the route table 10 is selected depending on the size of the object to be read from the secondary storage medium.

次に第4図(イ)において、先頭ポインタが参照するオ
ブジェクト40を二次記す、々媒体に退避するオブジェ
クトとして選択して退避操作を行ない、先頭ポインタを
オブジェクト40が参照していたオブジェクト41を参
照するように変更し、前記オブジェクト40が占有して
いた・記憶領域に、二次記憶媒体からオブジェクトラ読
込む。次に第4図(ヴにおいて、ルートテーブルエント
リの末尾ポインタが参照するオブジェクト42がオブジ
ェクト41全参照するように変更する。同時に、末尾ポ
インタもオブジェクト40を参照するように変更する。
Next, in FIG. 4(A), the object 40 referred to by the head pointer is selected as an object to be saved to a secondary recording medium, and a save operation is performed, and the object 41 to which the object 40 referred to the head pointer is saved. The object file is read from the secondary storage medium into the storage area occupied by the object 40. Next, in FIG. 4, the object 42 referred to by the end pointer of the route table entry is changed to refer to all objects 41. At the same time, the end pointer is also changed to refer to the object 40.

その結果第4図(fAに示すように、二次記憶媒体から
絖込んだオブジェクトが占有する傾城は末尾にくること
になる。
As a result, as shown in FIG. 4 (fA), the slope occupied by the object inserted from the secondary storage medium comes to the end.

また、二次記憶媒体から読込むべきオブジェクトの大き
さに適合するエントリが空の場合には、読込むオブジェ
ク)f格納するのに十分な大きさを持つエントリを対水
にして、上に説明した処理7行なえば良い。
In addition, if the entry that fits the size of the object to be read from the secondary storage medium is empty, an entry that is large enough to store the object to be read is used as described above. All you need to do is 7 lines of processing.

このように、オブジェクトを二次記憶媒体に退避する処
理を行なう場合に次の様な点が問題になることか多い。
As described above, when performing the process of saving objects to a secondary storage medium, the following problems often arise.

すなわち、退避したオブジェクトがすぐに必袂になり、
ただちに再度読込む必要がある場合が生じる。これをス
ラッシングと呼ぶ。
In other words, the evacuated object quickly becomes necessary,
There may be cases where it is necessary to reload immediately. This is called thrashing.

本発明によればこのようなスラッシングは高々−回です
ませることができる。丁なわち、二次記憶媒体から読込
まれたオブジェクトは末尾につながれるために、ただち
に退避り対束にならないからである。
According to the invention, such thrashing can be accomplished in at most - times. In other words, objects read from the secondary storage medium are connected to the end, so they are not immediately saved and combined into a bundle.

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

以上説明したように本発明によれば、退避すべきオブジ
ェクトを求める次めの清報t−g理しているので、効率
の良い)J!、避処理金行なうことかでさる。
As explained above, according to the present invention, the next clearing message for finding objects to be evacuated is processed, which is efficient). , I wonder if I'll have to pay the evacuation fee.

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

第1図に本発明の一実施例の構成図、第2図および第3
図は従来のオブジェクト管理方式を説明する図、第4図
は本発明の実施例による仮想オブジェクトメモリ方式全
睨明する図である。 10・・・・・・ルートテーブル、20・・・・・・オ
ブジェクトテーブル、30・・・・・・二次記憶媒体、
31・・・・・・間接ポインタ、40,41.42,1
20,121゜122、 130. 131. 132
. 133− 211゜212・・・・・・オブジェク
ト、100.110・・・・・・先頭ポインタ、101
,111・・・・・・末尾ポインタ、201.202.
203・・・・・9オブジ工クト番地情報、2111・
・・9Nμ紅ジ1日外和→ら←≠φ=、301・・・・
・・二次記憶に退避されたオブジェクト、311・・・
・・・二次記憶媒体中のオブジェクト番地゛ト魅灸。 代理人 弁理士  内  應    晋第 ? 叉 277、272: 訝ブジエクト 第 回
Fig. 1 is a configuration diagram of an embodiment of the present invention, Fig. 2 and Fig. 3
This figure is a diagram explaining a conventional object management system, and FIG. 4 is a diagram illustrating the entire virtual object memory system according to an embodiment of the present invention. 10... Route table, 20... Object table, 30... Secondary storage medium,
31... Indirect pointer, 40, 41.42, 1
20,121゜122, 130. 131. 132
.. 133- 211゜212...Object, 100.110...Start pointer, 101
, 111...End pointer, 201.202.
203...9 object address information, 2111.
・・9N μ Beniji 1 day outside sum → et al←≠φ=, 301・・・・
...Object saved to secondary memory, 311...
...object address in the secondary storage medium. Agent: Patent Attorney Shindai Nai?叉277、272:Suspicious Busiect No.

Claims (1)

【特許請求の範囲】[Claims] オブジェクト指向言語処理方式において、一連の連続記
憶領域からなる使用中のオブジェクトをこのオブジェク
トの領域が占有する大きさに従って分類するルートテー
ブルと、このルートテーブルから同じ大きさのオブジェ
クトを読出すために個々のオブジェクト領域に持ったリ
ンケージ情報と、オブジェクトの大きさを指定すること
により前記ルートテーブルとリンケージ情報とから該当
の大きさを持つオブジェクトを決定する選択手段とを有
することを特徴とする仮想オブジェクトメモリ管理方式
In an object-oriented language processing system, there is a route table that classifies objects in use, which consist of a series of contiguous storage areas, according to the size occupied by the area of this object, and a route table that classifies objects in use according to the size occupied by the area of this object. A virtual object memory characterized by having linkage information held in an object area of the virtual object memory, and selection means for determining an object having a corresponding size from the route table and linkage information by specifying the size of the object. Management method.
JP63157286A 1988-06-24 1988-06-24 Virtual object memory control system Pending JPH025156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63157286A JPH025156A (en) 1988-06-24 1988-06-24 Virtual object memory control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63157286A JPH025156A (en) 1988-06-24 1988-06-24 Virtual object memory control system

Publications (1)

Publication Number Publication Date
JPH025156A true JPH025156A (en) 1990-01-10

Family

ID=15646342

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63157286A Pending JPH025156A (en) 1988-06-24 1988-06-24 Virtual object memory control system

Country Status (1)

Country Link
JP (1) JPH025156A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0279141A (en) * 1988-07-28 1990-03-19 Internatl Business Mach Corp <Ibm> Virtual index mechanism

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0279141A (en) * 1988-07-28 1990-03-19 Internatl Business Mach Corp <Ibm> Virtual index mechanism

Similar Documents

Publication Publication Date Title
US4912629A (en) Real-time garbage collection for list processing using restructured cells for increased reference counter size
JPH06259384A (en) Multiprocessor
JPH0622015B2 (en) Data processing system control method
JP2553751B2 (en) Disk sector replacement method
JPH025156A (en) Virtual object memory control system
EP0633531B1 (en) Memory management system and method
US5623639A (en) Memory management system for the time-wise management of memory
JPS5853075A (en) Information processor provided with high speed separation buffer
JPS6129955A (en) Information accumulating method in postscript type medium
JPH0991195A (en) Block memory management device
JPH06208502A (en) Memory control method
JP2583403B2 (en) Backing store management method
JPS60148251A (en) Mail box management system
JP3008500B2 (en) Update record reading mechanism
JPH04199237A (en) System for controlling decentralized file cache
JPH01286045A (en) Abnormal information output reducing system at time of program abnormality completion
JPH04271449A (en) High-speed data transfer method
JPS62239249A (en) File managing device
JPS5818747A (en) File controlling system
JPH0237417A (en) Control system for transaction record output of electronic computer system
JPH05324456A (en) Reference counting type garbage collection method
JPH05225059A (en) Cache memory management system
JPH0520142A (en) Block managing system
JPH0512115A (en) Virtual storage managing system
JPH01181121A (en) Memory area allocating system