Skip to content

Commit

Permalink
Only create a SlangMemoryManager if there is not one already configured.
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Aug 2, 2021
1 parent 4a5d427 commit 192ac2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions smalltalksrc/VMMaker/SpurMemoryManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2022,8 +2022,9 @@ SpurMemoryManager >> allocateMemoryOfSize: memoryBytes newSpaceSize: newSpaceByt
+ rumpCStackSize.
allocatedMemory := newSpaceStartOffset + newSpaceBytes + memoryBytes.

memoryManager := SlangMemoryManager new.
memoryManager wordSize: self wordSize.
memoryManager ifNil: [
memoryManager := SlangMemoryManager new.
memoryManager wordSize: self wordSize ].

memory := self
allocateMemoryOfSize: allocatedMemory
Expand Down

0 comments on commit 192ac2a

Please sign in to comment.