Skip to content

Commit

Permalink
Mutant pharo-project#499, Installing [ Replace #ifTrue:ifFalse: recei…
Browse files Browse the repository at this point in the history
…ver with false ] on method [ setIsRememberedOf:to: ]
  • Loading branch information
hogoww committed Dec 23, 2021
1 parent 5bd93ca commit 722b983
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions smalltalksrc/VMMaker/Spur64BitMemoryManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -995,10 +995,13 @@ Spur64BitMemoryManager >> setIsPinnedOf: objOop to: aBoolean [

{ #category : #'header access' }
Spur64BitMemoryManager >> setIsRememberedOf: objOop to: aBoolean [
self longAt: objOop
put: (aBoolean
ifTrue: [(self longAt: objOop) bitOr: 1 << self rememberedBitShift]
ifFalse: [(self longAt: objOop) bitAnd: (1 << self rememberedBitShift) bitInvert64])

self longAt: objOop put: (false
ifTrue: [
(self longAt: objOop) bitOr: 1 << self rememberedBitShift ]
ifFalse: [
(self longAt: objOop) bitAnd:
(1 << self rememberedBitShift) bitInvert64 ])
]

{ #category : #'word size' }
Expand Down

0 comments on commit 722b983

Please sign in to comment.