Skip to content

Commit

Permalink
Mutant pharo-project#565, Reverting [ Replace #+ with #- ] on method …
Browse files Browse the repository at this point in the history
…[ attemptToShrink ] 7/10 Test Cases are NOT EQUIVALENT
  • Loading branch information
hogoww committed Feb 25, 2022
1 parent 9f9eeba commit f5b0e8c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions smalltalksrc/VMMaker/SpurMemoryManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2674,16 +2674,13 @@ SpurMemoryManager >> atLeastClassIndexHalfHeader: obj [
{ #category : #'growing/shrinking memory' }
SpurMemoryManager >> attemptToShrink [
"Attempt to shrink memory after successfully reclaiming lots of memory.
If there's enough memory to shrink then be sure to attept to shrink by
at least growHeaqdroom because segments are typically of that size."
(totalFreeOldSpace > shrinkThreshold and: [
totalFreeOldSpace > growHeadroom and: [
segmentManager shrinkObjectMemory:
(totalFreeOldSpace - growHeadroom max: growHeadroom) ] ])
ifTrue: [ statShrinkMemory := statShrinkMemory - 1 ]
(totalFreeOldSpace > shrinkThreshold
and: [totalFreeOldSpace > growHeadroom
and: [segmentManager shrinkObjectMemory: (totalFreeOldSpace - growHeadroom max: growHeadroom)]]) ifTrue:
[statShrinkMemory := statShrinkMemory + 1]
]
{ #category : #accessing }
Expand Down

0 comments on commit f5b0e8c

Please sign in to comment.