Skip to content

Commit

Permalink
Mutant pharo-project#589, Reverting [ Replace #= with #'~=' ] on meth…
Browse files Browse the repository at this point in the history
…od [ allOldSpaceEntitiesForCompactingFrom:to:do: ] 10/10 Test Cases are NOT EQUIVALENT
  • Loading branch information
hogoww committed Feb 25, 2022
1 parent d8164ae commit b31aae6
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions smalltalksrc/VMMaker/SpurMemoryManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -1755,25 +1755,21 @@ SpurMemoryManager >> allOldSpaceEntitiesForCoalescingFrom: firstObj do: aBlock [
{ #category : #'object enumeration' }
SpurMemoryManager >> allOldSpaceEntitiesForCompactingFrom: initialObject to: finalObject do: aBlock [
<inline: true>
| limit prevObj prevPrevObj objOop nextObj |
self assert: (self isOldObject: initialObject).
self assert: (self oop: finalObject isLessThanOrEqualTo: endOfMemory).
prevPrevObj := prevObj := nil.
objOop := initialObject.
limit := (self oop: finalObject isLessThan: endOfMemory)
ifTrue: [ self addressAfter: finalObject ]
ifFalse: [ endOfMemory ].
[
self assert: objOop \\ self allocationUnit ~= 0.
self oop: objOop isLessThan: limit ] whileTrue: [
self assert: (self long64At: objOop) ~= 0.
nextObj := self objectAfter: objOop limit: endOfMemory.
aBlock value: objOop value: nextObj.
prevPrevObj := prevObj.
prevObj := objOop.
objOop := nextObj ].
limit := (self oop: finalObject isLessThan: endOfMemory) ifTrue: [self addressAfter: finalObject] ifFalse: [endOfMemory].
[self assert: objOop \\ self allocationUnit = 0.
self oop: objOop isLessThan: limit] whileTrue:
[self assert: (self long64At: objOop) ~= 0.
nextObj := self objectAfter: objOop limit: endOfMemory.
aBlock value: objOop value: nextObj.
prevPrevObj := prevObj.
prevObj := objOop.
objOop := nextObj].
self touch: prevPrevObj.
self touch: prevObj
]
Expand Down

0 comments on commit b31aae6

Please sign in to comment.