Skip to content

Commit

Permalink
Merge pull request #642 from tesonep/fixing-startup-of-old-images
Browse files Browse the repository at this point in the history
Adding check to fix when the image is open with an older VM
  • Loading branch information
tesonep authored Jul 31, 2023
2 parents 6e5007f + 0a2f8a5 commit 51cad5f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions smalltalksrc/VMMaker/VMRememberedSet.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ VMRememberedSet >> initialize [
VMRememberedSet >> initializeRememberedSetShouldStartEmpty: shouldStartEmpty [
| obj |
obj := self objectOop.

(manager isInOldSpace: obj)
ifFalse: [
manager logWarn: 'Remembered Set is in an invalid position %p. Signal of a corrupted root table.' _: obj.
shouldStartEmpty
ifTrue: [
obj := manager nilObject.
manager logWarn: 'As it starts empty, we can ignore it' ]].

obj = manager nilObject
ifTrue:
[obj := manager allocatePinnedSlots: 1024.
Expand Down

0 comments on commit 51cad5f

Please sign in to comment.