From a7fb6c993ccf8b0c3f486aa105ea075f0f287dbe Mon Sep 17 00:00:00 2001 From: hogoww Date: Fri, 25 Feb 2022 13:11:45 +0100 Subject: [PATCH] Mutant #527, Installing [ Replace #ifTrue:ifFalse: receiver with true ] on method [ allocateSlotsInOldSpace:format:classIndex:isPinned: ] 34 test cases. --- .../VMMaker/SpurMemoryManager.class.st | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/smalltalksrc/VMMaker/SpurMemoryManager.class.st b/smalltalksrc/VMMaker/SpurMemoryManager.class.st index 134b6d0857..1dc0811a3e 100644 --- a/smalltalksrc/VMMaker/SpurMemoryManager.class.st +++ b/smalltalksrc/VMMaker/SpurMemoryManager.class.st @@ -2481,21 +2481,21 @@ SpurMemoryManager >> allocateSlotsInOldSpace: numSlots format: formatField class { #category : #allocation } SpurMemoryManager >> allocateSlotsInOldSpace: numSlots format: formatField classIndex: classIndex isPinned: isPinned [ - - ^ isPinned - ifTrue: [ - self - allocateSlotsForPinningInOldSpace: numSlots - bytes: (self objectBytesForSlots: numSlots) - format: formatField - classIndex: classIndex ] - ifFalse: [ - self - allocateSlotsInOldSpace: numSlots - bytes: (self objectBytesForSlots: numSlots) - format: formatField - classIndex: classIndex ] + + ^ true + ifTrue: [ + self + allocateSlotsForPinningInOldSpace: numSlots + bytes: (self objectBytesForSlots: numSlots) + format: formatField + classIndex: classIndex ] + ifFalse: [ + self + allocateSlotsInOldSpace: numSlots + bytes: (self objectBytesForSlots: numSlots) + format: formatField + classIndex: classIndex ] ] { #category : #allocation }