Skip to content

Commit

Permalink
Adding check to fix when the image is open with an older VM that corr…
Browse files Browse the repository at this point in the history
…upts the remembered set.
  • Loading branch information
tesonep committed Jul 5, 2023
1 parent eddb71f commit 0a2f8a5
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 0a2f8a5

Please sign in to comment.