Skip to content

Commit

Permalink
Mutant pharo-project#478, Installing [ Replace #+ with #- ] on method…
Browse files Browse the repository at this point in the history
… [ is:onObjStack: ]
  • Loading branch information
hogoww committed Dec 23, 2021
1 parent c479cf2 commit 7a244aa
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions smalltalksrc/VMMaker/SpurMemoryManager.class.st
Expand Up @@ -6832,23 +6832,23 @@ SpurMemoryManager >> is: oop instanceOf: classOop compactClassIndex: compactClas
{ #category : #'obj stacks' }
SpurMemoryManager >> is: oop onObjStack: objStack [
<inline: false>
| index nextPage |
objStack = nilObj ifTrue:
[^false].
objStack = nilObj ifTrue: [ ^ false ].
self assert: (self numSlotsOfAny: objStack) = ObjStackPageSlots.
"There are four fixed slots in an obj stack, and a Topx of 0 indicates empty, so
if there were 6 slots in an oop stack, full would be 2, and the last 0-rel index is 5."
index := (self fetchPointer: ObjStackTopx ofObject: objStack) + ObjStackNextx.
[index >= ObjStackFixedSlots] whileTrue:
[oop = (self fetchPointer: index ofObject: objStack) ifTrue:
[^true].
index := index - 1].
index := (self fetchPointer: ObjStackTopx ofObject: objStack)
- ObjStackNextx.
[ index >= ObjStackFixedSlots ] whileTrue: [
oop = (self fetchPointer: index ofObject: objStack) ifTrue: [
^ true ].
index := index - 1 ].
nextPage := self fetchPointer: ObjStackNextx ofObject: objStack.
nextPage ~= 0 ifTrue:
[(self is: oop onObjStack: nextPage) ifTrue:
[^true]].
^false
nextPage ~= 0 ifTrue: [
(self is: oop onObjStack: nextPage) ifTrue: [ ^ true ] ].
^ false
]
{ #category : #'header formats' }
Expand Down

0 comments on commit 7a244aa

Please sign in to comment.