Skip to content

Commit 9f9eeba

Browse files
committed
Mutant pharo-project#565, Installing [ Replace #+ with #- ] on method [ attemptToShrink ] 10 test cases.
1 parent 7f651d6 commit 9f9eeba

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

smalltalksrc/VMMaker/SpurMemoryManager.class.st

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2674,13 +2674,16 @@ SpurMemoryManager >> atLeastClassIndexHalfHeader: obj [
26742674
26752675
{ #category : #'growing/shrinking memory' }
26762676
SpurMemoryManager >> attemptToShrink [
2677+
26772678
"Attempt to shrink memory after successfully reclaiming lots of memory.
26782679
If there's enough memory to shrink then be sure to attept to shrink by
26792680
at least growHeaqdroom because segments are typically of that size."
2680-
(totalFreeOldSpace > shrinkThreshold
2681-
and: [totalFreeOldSpace > growHeadroom
2682-
and: [segmentManager shrinkObjectMemory: (totalFreeOldSpace - growHeadroom max: growHeadroom)]]) ifTrue:
2683-
[statShrinkMemory := statShrinkMemory + 1]
2681+
2682+
(totalFreeOldSpace > shrinkThreshold and: [
2683+
totalFreeOldSpace > growHeadroom and: [
2684+
segmentManager shrinkObjectMemory:
2685+
(totalFreeOldSpace - growHeadroom max: growHeadroom) ] ])
2686+
ifTrue: [ statShrinkMemory := statShrinkMemory - 1 ]
26842687
]
26852688
26862689
{ #category : #accessing }

0 commit comments

Comments
 (0)