Skip to content

Commit

Permalink
If the perm space size is 0, we return before
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Apr 8, 2022
1 parent c215203 commit 0aead05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion smalltalksrc/VMMaker/VMMemoryMap.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,12 @@ VMMemoryMap >> allocateOldObjectsSpace [
VMMemoryMap >> allocatePermObjectsSpace [

| minSize |
minSize := self roundToAllocationSize: (minPermSpaceSize max: initialPermSpaceSize).
minSize := minPermSpaceSize max: initialPermSpaceSize.

minSize = 0 ifTrue: [ ^ self ].

minSize := self roundToAllocationSize: minSize.

self permSpaceStart: (self
allocateMemory: minSize
BaseAddress: memoryMapConfiguration permSpaceInitialAddress).
Expand Down

0 comments on commit 0aead05

Please sign in to comment.