Skip to content

Commit

Permalink
Moving the check if it is a hidden VM object only to the moveToPermSp…
Browse files Browse the repository at this point in the history
…aceAllOldObjects only
  • Loading branch information
tesonep committed Sep 5, 2023
1 parent cdec7b5 commit 5686845
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions smalltalksrc/VMMaker/SpurMemoryManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -8010,10 +8010,6 @@ SpurMemoryManager >> isValidToMoveToPermSpace: objOop [

(self isPinned: objOop)
ifTrue: [ ^ false ].

"If it is a hidden Object of the VM"
((self classIndexOf: objOop) <= self classIsItselfClassIndexPun)
ifTrue: [ ^ false ].

fmt := self formatOf: objOop.

Expand Down Expand Up @@ -9173,9 +9169,11 @@ SpurMemoryManager >> moveToPermSpaceAllOldObjects [
becomeEffectsFlags := 0.

self allOldSpaceObjectsDo: [ :objOop |
(self isValidToMoveToPermSpace: objOop)
ifTrue: [ self doMoveToPermSpace: objOop addToRememberedSet: true]
].
"If it is a hidden Object of the VM, we skip it"
((self classIndexOf: objOop) <= self classIsItselfClassIndexPun)
ifFalse: [
(self isValidToMoveToPermSpace: objOop)
ifTrue: [ self doMoveToPermSpace: objOop addToRememberedSet: true ]]].

self allPermSpaceObjectsDo: [ :permObj |
self followForwardedObjectFields: permObj toDepth: 0 ].
Expand Down

0 comments on commit 5686845

Please sign in to comment.