Skip to content

Commit

Permalink
Cleanup simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
guillep committed Mar 30, 2023
1 parent 809b6e0 commit 64f7c6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
12 changes: 0 additions & 12 deletions smalltalksrc/VMMaker/Spur64BitMMLESimulator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,6 @@ Spur64BitMMLESimulator >> freeLists [
^freeLists
]

{ #category : #'gc - global' }
Spur64BitMMLESimulator >> globalGarbageCollect [
"If we're /not/ a clone, clone the VM and push it over the cliff.
If it survives, destroy the clone and continue. We should be OK until next time."
parent ifNil:
[coInterpreter cr; print: 'GC number '; print: statFullGCs; tab; flush.
CloneOnGC ifTrue:
[coInterpreter cloneSimulation objectMemory globalGarbageCollect.
Smalltalk garbageCollect]].
^super globalGarbageCollect
]

{ #category : #'growing/shrinking memory' }
Spur64BitMMLESimulator >> growOldSpaceByAtLeast: minAmmount [
"Attempt to grow memory by at least minAmmount.
Expand Down
3 changes: 2 additions & 1 deletion smalltalksrc/VMMaker/SpurPlanningCompactor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ Class {
'mobileStart',
'objectAfterLastMobileObject',
'savedFirstFieldsSpace',
'savedFirstFieldsSpaceNotInOldSpace'
'savedFirstFieldsSpaceNotInOldSpace',
'savedFirstFieldSpaceMaxSlots'
],
#pools : [
'VMBytecodeConstants'
Expand Down

0 comments on commit 64f7c6d

Please sign in to comment.