ObjectFileHandle.st
author Jan Vrany <jan.vrany@labware.com>
Thu, 27 Oct 2022 14:53:59 +0100
branchjv
changeset 4735 3b11fb3ede98
parent 4681 f30fb0d78836
permissions -rw-r--r--
Allow single underscore as method / block argument and temporaries This commit is a follow up for 38b221e.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4452
734890e46fa8 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4423
diff changeset
     1
"{ Encoding: utf8 }"
734890e46fa8 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4423
diff changeset
     2
141
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
     3
"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
     4
 COPYRIGHT (c) 1995 by Claus Gittinger
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
     5
	      All Rights Reserved
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
     6
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
     7
 This software is furnished under a license and may be used
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
     8
 only in accordance with the terms of that license and with the
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
    10
 be provided or otherwise made available to, or used by, any
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
    11
 other person.  No title to or ownership of the software is
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
    12
 hereby transferred.
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
    13
"
1080
bd3f19f6009a category change
Claus Gittinger <cg@exept.de>
parents: 1038
diff changeset
    14
"{ Package: 'stx:libcomp' }"
bd3f19f6009a category change
Claus Gittinger <cg@exept.de>
parents: 1038
diff changeset
    15
3849
95fe62798538 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
    16
"{ NameSpace: Smalltalk }"
95fe62798538 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
    17
114
claus
parents:
diff changeset
    18
Object subclass:#ObjectFileHandle
259
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
    19
	instanceVariableNames:'sysHandle1 sysHandle2 pathName moduleID handleType weakMethodRef
1163
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
    20
		weakClassRefs weakFunctionRefs snapshot'
259
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
    21
	classVariableNames:''
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
    22
	poolDictionaries:''
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
    23
	category:'System-Compiler'
120
claus
parents: 114
diff changeset
    24
!
claus
parents: 114
diff changeset
    25
368
26e9268bde0f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 367
diff changeset
    26
!ObjectFileHandle class methodsFor:'documentation'!
120
claus
parents: 114
diff changeset
    27
141
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
    28
copyright
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
    29
"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
    30
 COPYRIGHT (c) 1995 by Claus Gittinger
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
    31
	      All Rights Reserved
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
    32
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
    33
 This software is furnished under a license and may be used
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
    34
 only in accordance with the terms of that license and with the
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
    35
 inclusion of the above copyright notice.   This software may not
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
    36
 be provided or otherwise made available to, or used by, any
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
    37
 other person.  No title to or ownership of the software is
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
    38
 hereby transferred.
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
    39
"
114
claus
parents:
diff changeset
    40
!
claus
parents:
diff changeset
    41
120
claus
parents: 114
diff changeset
    42
documentation
claus
parents: 114
diff changeset
    43
"
123
claus
parents: 122
diff changeset
    44
    not for public use - used by ObjectFileLoader to keep track of loaded modules,
claus
parents: 122
diff changeset
    45
    associating objectFile names and moduleIDs to classes/methods.
299
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
    46
    This is required to be able to fixup classes, methods and function references
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
    47
    when an image is restarted and the dynamic objects are reloaded.
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
    48
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
    49
    [see also:]
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
    50
	ExternalFunction
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
    51
	ObjectFileLoader
263
3b21d0991eff documentation
Claus Gittinger <cg@exept.de>
parents: 259
diff changeset
    52
3b21d0991eff documentation
Claus Gittinger <cg@exept.de>
parents: 259
diff changeset
    53
    [author:]
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
    54
	Claus Gittinger
120
claus
parents: 114
diff changeset
    55
"
114
claus
parents:
diff changeset
    56
! !
claus
parents:
diff changeset
    57
1163
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
    58
!ObjectFileHandle class methodsFor:'change & update'!
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
    59
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
    60
preSnapshot
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
    61
    "about to write a snapshot.
3849
95fe62798538 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
    62
     Mark all the current instances as being snapshotted"
1163
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
    63
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
    64
    self allInstancesDo:[:i| i snapshot:true].
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
    65
! !
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
    66
114
claus
parents:
diff changeset
    67
!ObjectFileHandle methodsFor:'accessing'!
claus
parents:
diff changeset
    68
122
claus
parents: 120
diff changeset
    69
classes
claus
parents: 120
diff changeset
    70
    "return the classes"
claus
parents: 120
diff changeset
    71
963
efa3aeb6859c always return a collection from #functions and #classes
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
    72
    weakClassRefs isNil ifTrue:[^ #()].
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
    73
    ^ weakClassRefs asArray
122
claus
parents: 120
diff changeset
    74
claus
parents: 120
diff changeset
    75
    "Created: 14.9.1995 / 21:13:13 / claus"
claus
parents: 120
diff changeset
    76
!
claus
parents: 120
diff changeset
    77
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
    78
classes:aCollectionOfClasses
122
claus
parents: 120
diff changeset
    79
    "set the classes collection"
claus
parents: 120
diff changeset
    80
2347
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
    81
    weakClassRefs notNil ifTrue:[
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
    82
	weakClassRefs removeDependent:self.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
    83
	weakClassRefs := nil.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
    84
	handleType := nil.
2347
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
    85
    ].
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
    86
    aCollectionOfClasses notNil ifTrue:[
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
    87
	weakClassRefs := WeakArray withAll:aCollectionOfClasses.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
    88
	weakClassRefs addDependent:self.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
    89
	handleType := #classLibraryObject
2347
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
    90
    ].
122
claus
parents: 120
diff changeset
    91
claus
parents: 120
diff changeset
    92
    "Created: 14.9.1995 / 21:13:13 / claus"
claus
parents: 120
diff changeset
    93
!
claus
parents: 120
diff changeset
    94
299
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
    95
functions
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
    96
    "return the functions which were already extracted from the module."
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
    97
963
efa3aeb6859c always return a collection from #functions and #classes
Claus Gittinger <cg@exept.de>
parents: 490
diff changeset
    98
    weakFunctionRefs isNil ifTrue:[^ #()].
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
    99
    ^ weakFunctionRefs asArray
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   100
	select:[:f | f notNil and:[f class ~~ SmallInteger]]
299
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   101
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   102
    "Created: 12.7.1996 / 15:33:09 / cg"
490
621a7283b926 oops - changeArg is #ElementExpired; changedObject is the one we have to
Claus Gittinger <cg@exept.de>
parents: 474
diff changeset
   103
    "Modified: 30.1.1997 / 20:54:54 / cg"
299
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   104
!
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   105
967
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   106
makeClassLibHandle
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   107
    "make this a classLibHandle - must be done manually when init failed for proper de-registration
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   108
     later."
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   109
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   110
    handleType notNil ifTrue:[
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   111
	self error:'should not happen'.
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   112
    ].
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   113
    handleType := #classLibraryObject
967
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   114
!
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   115
120
claus
parents: 114
diff changeset
   116
method
976
9078108d2af4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   117
    "return the method (or nil, if I am not a method-file handle)"
120
claus
parents: 114
diff changeset
   118
157
d7f68808a258 reload objects in the previous order
Claus Gittinger <cg@exept.de>
parents: 154
diff changeset
   119
    weakMethodRef isNil ifTrue:[^ nil].
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   120
    ^ weakMethodRef at:1
120
claus
parents: 114
diff changeset
   121
claus
parents: 114
diff changeset
   122
    "Created: 14.9.1995 / 21:13:13 / claus"
claus
parents: 114
diff changeset
   123
!
claus
parents: 114
diff changeset
   124
claus
parents: 114
diff changeset
   125
method:something
157
d7f68808a258 reload objects in the previous order
Claus Gittinger <cg@exept.de>
parents: 154
diff changeset
   126
    "set the method"
120
claus
parents: 114
diff changeset
   127
2347
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   128
    weakMethodRef notNil ifTrue:[
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   129
	weakMethodRef removeDependent:self.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   130
	weakMethodRef := nil.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   131
	handleType := nil.
2347
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   132
    ].
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   133
    something notNil ifTrue:[
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   134
	weakMethodRef := WeakArray with:something.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   135
	weakMethodRef addDependent:self.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   136
	handleType := #methodObject.
2347
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   137
    ].
120
claus
parents: 114
diff changeset
   138
claus
parents: 114
diff changeset
   139
    "Created: 14.9.1995 / 21:13:13 / claus"
141
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   140
!
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   141
976
9078108d2af4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   142
methods
9078108d2af4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   143
    "return the collection of methods (or an empty collection,
9078108d2af4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   144
     if I am not a method-file handle)"
9078108d2af4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   145
9078108d2af4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   146
    |m|
9078108d2af4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   147
9078108d2af4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   148
    (m := self method) isNil ifTrue:[^ #()].
9078108d2af4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   149
    "/ TODO: this will return a real collection, when method-only
9078108d2af4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   150
    "/ binaries remember that relevant information ...
9078108d2af4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   151
    ^ Array with:m
9078108d2af4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   152
!
9078108d2af4 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 973
diff changeset
   153
141
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   154
moduleID
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   155
    "return moduleID"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   156
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   157
    ^ moduleID
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   158
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   159
    "Created: 14.9.1995 / 21:13:12 / claus"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   160
!
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   161
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   162
moduleID:something
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   163
    "set moduleID"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   164
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   165
    moduleID := something.
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   166
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   167
    "Created: 14.9.1995 / 21:13:12 / claus"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   168
!
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   169
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   170
pathName
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   171
    "return pathName"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   172
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   173
    ^ pathName
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   174
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   175
    "Created: 14.9.1995 / 21:13:12 / claus"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   176
!
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   177
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   178
pathName:something
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   179
    "set pathName"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   180
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   181
    pathName := something.
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   182
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   183
    "Created: 14.9.1995 / 21:13:12 / claus"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   184
!
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   185
1163
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
   186
snapshot
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
   187
    "return the value of the instance variable 'snapshot' (automatically generated)"
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
   188
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
   189
    ^ snapshot
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
   190
!
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
   191
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
   192
snapshot:something
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
   193
    "set the value of the instance variable 'snapshot' (automatically generated)"
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
   194
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
   195
    snapshot := something.
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
   196
!
242ec57c2f27 Remove object files that have been collected and not been used
Stefan Vogel <sv@exept.de>
parents: 1080
diff changeset
   197
141
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   198
sysHandle1
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   199
    "return sysHandle1"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   200
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   201
    ^ sysHandle1
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   202
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   203
    "Created: 14.9.1995 / 21:13:12 / claus"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   204
!
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   205
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   206
sysHandle1:something
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   207
    "set sysHandle1"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   208
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   209
    sysHandle1 := something.
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   210
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   211
    "Created: 14.9.1995 / 21:13:12 / claus"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   212
!
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   213
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   214
sysHandle2
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   215
    "return sysHandle2"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   216
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   217
    ^ sysHandle2
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   218
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   219
    "Created: 14.9.1995 / 21:13:12 / claus"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   220
!
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   221
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   222
sysHandle2:something
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   223
    "set sysHandle2"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   224
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   225
    sysHandle2 := something.
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   226
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   227
    "Created: 14.9.1995 / 21:13:12 / claus"
114
claus
parents:
diff changeset
   228
! !
141
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   229
1554
8e923008be65 New: #unload
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
   230
!ObjectFileHandle methodsFor:'actions'!
8e923008be65 New: #unload
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
   231
2347
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   232
removeConnectedObjects
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   233
    "remove the smalltalk objects from the system that are connected
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   234
     with this ObjectFileHandle"
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   235
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   236
    |method|
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   237
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   238
    self isClassLibHandle ifTrue:[
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   239
	"/ remove the classes (meta- and private classes are removed as a side effect)...
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   240
	Class withoutUpdatingChangesDo:[
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   241
	    self classes do:[:eachClass |
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   242
		(eachClass notNil
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   243
		 and:[eachClass isMeta not
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   244
		 and:[eachClass isPrivate not]]) ifTrue:[
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   245
		    eachClass removeFromSystem.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   246
		]
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   247
	    ]
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   248
	].
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   249
	^ self.
2347
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   250
    ].
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   251
    self isMethodHandle ifTrue:[
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   252
	"we keep the method, but break the association to its code"
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   253
	method := self method.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   254
	method notNil ifTrue:[
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   255
	    method code:nil.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   256
	    self method:nil.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   257
	].
2347
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   258
    ].
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   259
!
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   260
2349
92c8f42e973d added: #removeUnusedObjectFile
Stefan Vogel <sv@exept.de>
parents: 2347
diff changeset
   261
removeUnusedObjectFile
92c8f42e973d added: #removeUnusedObjectFile
Stefan Vogel <sv@exept.de>
parents: 2347
diff changeset
   262
    "remove the object file,
92c8f42e973d added: #removeUnusedObjectFile
Stefan Vogel <sv@exept.de>
parents: 2347
diff changeset
   263
     but only if we are sure, that it is not referenced by a snapshot."
92c8f42e973d added: #removeUnusedObjectFile
Stefan Vogel <sv@exept.de>
parents: 2347
diff changeset
   264
92c8f42e973d added: #removeUnusedObjectFile
Stefan Vogel <sv@exept.de>
parents: 2347
diff changeset
   265
    snapshot ~~ true ifTrue:[
4265
2d1b30ce36f2 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 4127
diff changeset
   266
        pathName asFilename removeFile.
2349
92c8f42e973d added: #removeUnusedObjectFile
Stefan Vogel <sv@exept.de>
parents: 2347
diff changeset
   267
    ]
92c8f42e973d added: #removeUnusedObjectFile
Stefan Vogel <sv@exept.de>
parents: 2347
diff changeset
   268
!
92c8f42e973d added: #removeUnusedObjectFile
Stefan Vogel <sv@exept.de>
parents: 2347
diff changeset
   269
1554
8e923008be65 New: #unload
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
   270
unload
8e923008be65 New: #unload
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
   271
    "unload the object file represented by me"
8e923008be65 New: #unload
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
   272
8e923008be65 New: #unload
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
   273
    ObjectFileLoader unloadDynamicObject:self
8e923008be65 New: #unload
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
   274
! !
8e923008be65 New: #unload
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
   275
259
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   276
!ObjectFileHandle methodsFor:'change & update'!
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   277
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   278
update:something with:aParameter from:changedObject
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   279
    "my method/class object was collected - unload the underlying objectfile"
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   280
490
621a7283b926 oops - changeArg is #ElementExpired; changedObject is the one we have to
Claus Gittinger <cg@exept.de>
parents: 474
diff changeset
   281
    changedObject == weakMethodRef ifTrue:[
4681
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   282
        weakMethodRef nilAllCorpsesAndDo:[:idx |].
367
87d4673fbd06 changed WeakArray to set emptied slots to zero
Claus Gittinger <cg@exept.de>
parents: 304
diff changeset
   283
    ].
87d4673fbd06 changed WeakArray to set emptied slots to zero
Claus Gittinger <cg@exept.de>
parents: 304
diff changeset
   284
490
621a7283b926 oops - changeArg is #ElementExpired; changedObject is the one we have to
Claus Gittinger <cg@exept.de>
parents: 474
diff changeset
   285
    changedObject == weakClassRefs ifTrue:[
4681
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   286
        weakClassRefs nilAllCorpsesAndDo:[:idx |].
367
87d4673fbd06 changed WeakArray to set emptied slots to zero
Claus Gittinger <cg@exept.de>
parents: 304
diff changeset
   287
    ].
87d4673fbd06 changed WeakArray to set emptied slots to zero
Claus Gittinger <cg@exept.de>
parents: 304
diff changeset
   288
259
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   289
    self isObsolete ifTrue:[
4681
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   290
        weakFunctionRefs notNil ifTrue:[
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   291
            weakFunctionRefs removeDependent:self.
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   292
            weakFunctionRefs := nil.
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   293
        ].
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   294
        weakClassRefs notNil ifTrue:[
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   295
            weakClassRefs removeDependent:self.
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   296
            weakClassRefs := nil.
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   297
        ].
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   298
        weakMethodRef notNil ifTrue:[
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   299
            weakMethodRef removeDependent:self.
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   300
            weakMethodRef := nil.
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   301
        ].
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   302
        Logger info:'ObjectFileHandle: unloading %1 (method/classes were garbageCollected)' with:pathName.
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   303
        self unload.
f30fb0d78836 #QUALITY by stefan
Stefan Vogel <sv@exept.de>
parents: 4452
diff changeset
   304
        self removeUnusedObjectFile.
259
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   305
    ].
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   306
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   307
    "Created: 5.12.1995 / 18:05:08 / cg"
490
621a7283b926 oops - changeArg is #ElementExpired; changedObject is the one we have to
Claus Gittinger <cg@exept.de>
parents: 474
diff changeset
   308
    "Modified: 30.1.1997 / 20:57:56 / cg"
259
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   309
! !
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   310
4423
bd0b9dbc30c2 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4265
diff changeset
   311
!ObjectFileHandle methodsFor:'copying-private'!
259
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   312
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   313
postCopy
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   314
    "flush module handles of the copy"
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   315
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   316
    sysHandle1 := sysHandle2 := moduleID := nil
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   317
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   318
    "Created: 5.12.1995 / 21:10:49 / cg"
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   319
    "Modified: 25.4.1996 / 09:43:53 / cg"
1614
894cf7de352c +postDeepCopy
Claus Gittinger <cg@exept.de>
parents: 1603
diff changeset
   320
!
894cf7de352c +postDeepCopy
Claus Gittinger <cg@exept.de>
parents: 1603
diff changeset
   321
894cf7de352c +postDeepCopy
Claus Gittinger <cg@exept.de>
parents: 1603
diff changeset
   322
postDeepCopy
894cf7de352c +postDeepCopy
Claus Gittinger <cg@exept.de>
parents: 1603
diff changeset
   323
    sysHandle1 := sysHandle2 := moduleID := nil
259
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   324
! !
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   325
1080
bd3f19f6009a category change
Claus Gittinger <cg@exept.de>
parents: 1038
diff changeset
   326
!ObjectFileHandle methodsFor:'printing & storing'!
157
d7f68808a258 reload objects in the previous order
Claus Gittinger <cg@exept.de>
parents: 154
diff changeset
   327
d7f68808a258 reload objects in the previous order
Claus Gittinger <cg@exept.de>
parents: 154
diff changeset
   328
printOn:aStream
259
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   329
    "append a printed representation of the receiver to aStream"
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   330
4452
734890e46fa8 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4423
diff changeset
   331
    aStream nextPutAll:self className; nextPutAll:'(handle=<'.
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   332
    sysHandle1 printOn:aStream.
4127
eda0826e8b1d #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3849
diff changeset
   333
    aStream space.
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   334
    sysHandle2 printOn:aStream.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   335
    aStream nextPutAll:'> path='''.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   336
    pathName printOn:aStream.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   337
    aStream nextPutAll:''' id='.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   338
    moduleID printOn:aStream.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   339
    aStream nextPutAll:' type='.
157
d7f68808a258 reload objects in the previous order
Claus Gittinger <cg@exept.de>
parents: 154
diff changeset
   340
    handleType printOn:aStream.
d7f68808a258 reload objects in the previous order
Claus Gittinger <cg@exept.de>
parents: 154
diff changeset
   341
    aStream nextPutAll:' method=<'.
d7f68808a258 reload objects in the previous order
Claus Gittinger <cg@exept.de>
parents: 154
diff changeset
   342
    self method printOn:aStream.
d7f68808a258 reload objects in the previous order
Claus Gittinger <cg@exept.de>
parents: 154
diff changeset
   343
    aStream nextPutAll:'> classes=<'.
d7f68808a258 reload objects in the previous order
Claus Gittinger <cg@exept.de>
parents: 154
diff changeset
   344
    self classes printOn:aStream.
4127
eda0826e8b1d #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3849
diff changeset
   345
    aStream nextPut:$>.
157
d7f68808a258 reload objects in the previous order
Claus Gittinger <cg@exept.de>
parents: 154
diff changeset
   346
4127
eda0826e8b1d #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3849
diff changeset
   347
    aStream nextPut:$).
157
d7f68808a258 reload objects in the previous order
Claus Gittinger <cg@exept.de>
parents: 154
diff changeset
   348
4127
eda0826e8b1d #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3849
diff changeset
   349
    "Modified: / 25-04-1996 / 09:44:08 / cg"
eda0826e8b1d #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 3849
diff changeset
   350
    "Modified: / 17-02-2017 / 10:35:25 / stefan"
4452
734890e46fa8 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4423
diff changeset
   351
    "Modified: / 28-06-2019 / 09:05:21 / Claus Gittinger"
157
d7f68808a258 reload objects in the previous order
Claus Gittinger <cg@exept.de>
parents: 154
diff changeset
   352
! !
d7f68808a258 reload objects in the previous order
Claus Gittinger <cg@exept.de>
parents: 154
diff changeset
   353
141
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   354
!ObjectFileHandle methodsFor:'queries'!
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   355
299
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   356
getFunction:aString
1767
0ed1d952d4dc function registration handling
ca
parents: 1743
diff changeset
   357
    "return a function object for an entry in the module represented by the receiver."
0ed1d952d4dc function registration handling
ca
parents: 1743
diff changeset
   358
0ed1d952d4dc function registration handling
ca
parents: 1743
diff changeset
   359
    |f|
299
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   360
1767
0ed1d952d4dc function registration handling
ca
parents: 1743
diff changeset
   361
    f := ExternalFunction basicNew.
0ed1d952d4dc function registration handling
ca
parents: 1743
diff changeset
   362
    (self getFunctionAddress:aString into:f) isNil ifTrue:[
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   363
	^ nil
299
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   364
    ].
1769
bb88e5aab773 *** empty log message ***
ca
parents: 1767
diff changeset
   365
    f setName:aString moduleHandle:self.
1767
0ed1d952d4dc function registration handling
ca
parents: 1743
diff changeset
   366
    ^ f.
299
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   367
!
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   368
1603
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   369
getFunctionAddress:aString into:anExternalFunction
1743
7cd4c5cd0510 comment
Claus Gittinger <cg@exept.de>
parents: 1614
diff changeset
   370
    "fill the code address of the external function named aString into anExternalFunction.
7cd4c5cd0510 comment
Claus Gittinger <cg@exept.de>
parents: 1614
diff changeset
   371
     Returns the address, or nil."
1603
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   372
1767
0ed1d952d4dc function registration handling
ca
parents: 1743
diff changeset
   373
    |address slot sz nW|
1603
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   374
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   375
    address := ObjectFileLoader getFunction:aString from:self.
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   376
    address isNil ifTrue:[
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   377
	anExternalFunction code:0.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   378
	^ nil
1603
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   379
    ].
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   380
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   381
    anExternalFunction code:address.
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   382
    weakFunctionRefs isNil ifTrue:[
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   383
	handleType := #functionObject.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   384
	weakFunctionRefs := WeakArray with:anExternalFunction.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   385
	^ address.
1603
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   386
    ].
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   387
1767
0ed1d952d4dc function registration handling
ca
parents: 1743
diff changeset
   388
    (weakFunctionRefs includesIdentical:anExternalFunction) ifTrue:[
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   389
	^ address
1603
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   390
    ].
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   391
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   392
    slot := weakFunctionRefs identityIndexOf:nil.
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   393
    slot ~~ 0 ifTrue:[
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   394
	weakFunctionRefs at:slot put:anExternalFunction.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   395
	^ address.
1603
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   396
    ].
1767
0ed1d952d4dc function registration handling
ca
parents: 1743
diff changeset
   397
    weakFunctionRefs := weakFunctionRefs copyWith:anExternalFunction.
1603
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   398
1767
0ed1d952d4dc function registration handling
ca
parents: 1743
diff changeset
   399
"/    sz := weakFunctionRefs size.
0ed1d952d4dc function registration handling
ca
parents: 1743
diff changeset
   400
"/    nW := WeakArray new:(sz + 1).
0ed1d952d4dc function registration handling
ca
parents: 1743
diff changeset
   401
"/    nW replaceFrom:1 to:sz with:weakFunctionRefs startingAt:1.
0ed1d952d4dc function registration handling
ca
parents: 1743
diff changeset
   402
"/    nW at:sz+1 put:anExternalFunction.
0ed1d952d4dc function registration handling
ca
parents: 1743
diff changeset
   403
"/
0ed1d952d4dc function registration handling
ca
parents: 1743
diff changeset
   404
"/    weakFunctionRefs := nW.
1603
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   405
    ^ address
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   406
!
4243be479e4f more FFI (foreign function interface) support - still incomplete
Stefan Vogel <sv@exept.de>
parents: 1554
diff changeset
   407
299
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   408
hasUndefinedSymbols
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   409
    "return true, if the module has any undefined symbols.
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   410
     The only system, which allows modules with undefined symbols to be
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   411
     loaded is (currently) the linux a.out version."
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   412
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   413
    ^ ObjectFileLoader hasUndefinedSymbolsIn:self
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   414
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   415
    "Created: 12.7.1996 / 14:59:09 / cg"
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   416
!
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   417
141
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   418
isClassLibHandle
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   419
    "return true, if I am a handle for a class library"
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   420
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   421
    ^ handleType == #classLibraryObject
141
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   422
!
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   423
299
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   424
isFunctionObjectHandle
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   425
    "return true, if I am a handle for a c-code (or other) function object file"
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   426
304
Claus Gittinger <cg@exept.de>
parents: 302
diff changeset
   427
    ^ handleType == #functionObject
299
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   428
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   429
    "Created: 12.7.1996 / 15:35:33 / cg"
304
Claus Gittinger <cg@exept.de>
parents: 302
diff changeset
   430
    "Modified: 12.7.1996 / 17:25:31 / cg"
157
d7f68808a258 reload objects in the previous order
Claus Gittinger <cg@exept.de>
parents: 154
diff changeset
   431
!
d7f68808a258 reload objects in the previous order
Claus Gittinger <cg@exept.de>
parents: 154
diff changeset
   432
259
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   433
isMethodHandle
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   434
    "return true, if I am a handle for a single compiled method"
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   435
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   436
    ^ handleType == #methodObject
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   437
!
a469695d8d19 commentary
Claus Gittinger <cg@exept.de>
parents: 157
diff changeset
   438
141
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   439
isObsolete
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   440
    "return true, if my clases/method has already been removed from
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   441
     the image. I.e. if the object file can be unloaded without danger."
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   442
367
87d4673fbd06 changed WeakArray to set emptied slots to zero
Claus Gittinger <cg@exept.de>
parents: 304
diff changeset
   443
    |ref|
87d4673fbd06 changed WeakArray to set emptied slots to zero
Claus Gittinger <cg@exept.de>
parents: 304
diff changeset
   444
154
04716b86ad29 reloading compiled methods
Claus Gittinger <cg@exept.de>
parents: 152
diff changeset
   445
    moduleID notNil ifTrue:[
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   446
	handleType == #classLibraryObject ifTrue:[
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   447
	    ^ weakClassRefs isNil or:[(weakClassRefs findFirst:[:x | x notNil and:[x class ~~ SmallInteger]]) == 0]
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   448
	].
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   449
	handleType == #methodObject ifTrue:[
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   450
	    weakMethodRef isNil ifTrue:[^ true].
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   451
	    ref := weakMethodRef at:1.
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   452
	    ^ ref isNil or:[ref class == SmallInteger]
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   453
	].
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   454
	handleType == #functionObject ifTrue:[
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   455
	    ^ weakFunctionRefs isNil or:[(weakFunctionRefs findFirst:[:x | x notNil and:[x class ~~ SmallInteger]]) == 0]
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   456
	].
141
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   457
    ].
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   458
    ^ false
299
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   459
33a154508328 additional support for non-ST object files (function modules)
Claus Gittinger <cg@exept.de>
parents: 263
diff changeset
   460
    "Modified: 12.7.1996 / 15:42:21 / cg"
967
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   461
!
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   462
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   463
isUnknownHandle
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   464
    "return true, if it is not (yet) known, what type of
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   465
     file is represented by the handle. (i.e. when loaded, but not yet
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   466
     registered/initialized)"
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   467
160ab002eed1 support proper unregistration, when a classLib fails to load
Claus Gittinger <cg@exept.de>
parents: 963
diff changeset
   468
    ^ handleType isNil
973
67ea50ac2f99 added package access
Claus Gittinger <cg@exept.de>
parents: 967
diff changeset
   469
!
67ea50ac2f99 added package access
Claus Gittinger <cg@exept.de>
parents: 967
diff changeset
   470
67ea50ac2f99 added package access
Claus Gittinger <cg@exept.de>
parents: 967
diff changeset
   471
package
67ea50ac2f99 added package access
Claus Gittinger <cg@exept.de>
parents: 967
diff changeset
   472
    "retrieve the packageID of the class-library handle"
67ea50ac2f99 added package access
Claus Gittinger <cg@exept.de>
parents: 967
diff changeset
   473
1928
0953c60fe418 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1769
diff changeset
   474
    |classes methods|
973
67ea50ac2f99 added package access
Claus Gittinger <cg@exept.de>
parents: 967
diff changeset
   475
67ea50ac2f99 added package access
Claus Gittinger <cg@exept.de>
parents: 967
diff changeset
   476
    "/ sigh - for now, the package must be extracted from the first classes/methods
67ea50ac2f99 added package access
Claus Gittinger <cg@exept.de>
parents: 967
diff changeset
   477
    "/ package.
67ea50ac2f99 added package access
Claus Gittinger <cg@exept.de>
parents: 967
diff changeset
   478
67ea50ac2f99 added package access
Claus Gittinger <cg@exept.de>
parents: 967
diff changeset
   479
    self isClassLibHandle ifTrue:[
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   480
	(classes := self classes) notEmpty ifTrue:[
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   481
	    ^ classes first package
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   482
	].
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   483
	^ nil
973
67ea50ac2f99 added package access
Claus Gittinger <cg@exept.de>
parents: 967
diff changeset
   484
    ].
67ea50ac2f99 added package access
Claus Gittinger <cg@exept.de>
parents: 967
diff changeset
   485
    self isMethodHandle ifTrue:[
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   486
	(methods := self methods) notEmpty ifTrue:[
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   487
	    ^ methods first package
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   488
	].
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   489
	^ nil
973
67ea50ac2f99 added package access
Claus Gittinger <cg@exept.de>
parents: 967
diff changeset
   490
    ].
67ea50ac2f99 added package access
Claus Gittinger <cg@exept.de>
parents: 967
diff changeset
   491
    ^ nil
1928
0953c60fe418 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1769
diff changeset
   492
0953c60fe418 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1769
diff changeset
   493
    "Modified: / 12-10-2006 / 20:00:15 / cg"
141
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   494
! !
d378d997aab0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 135
diff changeset
   495
368
26e9268bde0f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 367
diff changeset
   496
!ObjectFileHandle class methodsFor:'documentation'!
148
ef0e604209ec version method at the end
Claus Gittinger <cg@exept.de>
parents: 141
diff changeset
   497
ef0e604209ec version method at the end
Claus Gittinger <cg@exept.de>
parents: 141
diff changeset
   498
version
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   499
    ^ '$Header$'
2347
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   500
!
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   501
31415085bf93 added: #removeConnectedObjects
Stefan Vogel <sv@exept.de>
parents: 1928
diff changeset
   502
version_CVS
3662
56bf5e42eea3 ipreps for linked index chain in WeakArray
Claus Gittinger <cg@exept.de>
parents: 2884
diff changeset
   503
    ^ '$Header$'
148
ef0e604209ec version method at the end
Claus Gittinger <cg@exept.de>
parents: 141
diff changeset
   504
! !
3849
95fe62798538 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3662
diff changeset
   505