Skip to content

Commit

Permalink
Cleaning comments
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Mar 30, 2023
1 parent 096fe80 commit e33ae7e
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,22 +225,19 @@ VMSpurOldSpaceGarbageCollectorTest >> testCompactEphemeronQueuePass1 [

| ephemeron |

"For first compaction pass"
"Hole, then mourn queue"
self newOldSpaceObjectWithSlots: 0.
memory initializeMournQueue.

"For second compaction pass"
"Hole, then ephemeron. Does not really need to be an ephemeron for this tests, any object does it"
self newOldSpaceObjectWithSlots: 0.
ephemeron := self newOldSpaceObjectWithSlots: 0.
self keepObjectInVMVariable1: ephemeron.
memory push: ephemeron onObjStack: memory mournQueue.

"Compact"
"Compact in one pass"
memory garbageCollectForSnapshot.

"Assert?"
self assert: (memory sizeOfObjStack: memory mournQueue) equals: 1.
self assert: memory dequeueMourner equals: self keptObjectInVMVariable1.
]
Expand Down

0 comments on commit e33ae7e

Please sign in to comment.