Skip to content

Commit

Permalink
Fix machine code: checks objects for remembered set
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Jul 8, 2022
1 parent b772b2f commit 28da564
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion smalltalksrc/VMMaker/CogObjectRepresentation.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ CogObjectRepresentation >> genCheckObjectPosition: destReg scratchReg: scratchRe
<var: #recvIsPerm type: #'AbstractInstruction *'>
<var: #exit type: #'AbstractInstruction *'>

cogit CmpCq: objectMemory getMemoryMap newSpaceStart R: valueReg.
cogit CmpCq: objectMemory getMemoryMap getNewSpaceStart R: valueReg.
valueIsMachineCode := cogit JumpBelow: 0.

cogit CmpCq: objectMemory getMemoryMap fixedPermSpaceStart R: destReg.
Expand Down
8 changes: 8 additions & 0 deletions smalltalksrc/VMMaker/VMMemoryMap.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,14 @@ VMMemoryMap >> fixedPermSpaceStart [
^ memoryMapConfiguration permSpaceInitialAddress
]

{ #category : #accessing }
VMMemoryMap >> getNewSpaceStart [

<api>

^ self newSpaceStart
]

{ #category : #accessing }
VMMemoryMap >> getOldSpaceStart [

Expand Down

0 comments on commit 28da564

Please sign in to comment.