Skip to content

Commit 7f651d6

Browse files
committed
Mutant pharo-project#564, Reverting [ Creates an overflow as per C semantics. VM mutation. ] on method [ attemptToShrink ] 2/10 Test Cases are NOT EQUIVALENT
1 parent 3934679 commit 7f651d6

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

smalltalksrc/VMMaker/SpurMemoryManager.class.st

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

0 commit comments

Comments
 (0)