Skip to content

Commit

Permalink
Adding addresses for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Apr 8, 2022
1 parent 4832058 commit b0b0541
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion smalltalksrc/VMMaker/VMBasicConstants.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ Class {
'STACKVM',
'SistaVM',
'TempVectReadBarrier',
'VMBIGENDIAN'
'VMBIGENDIAN',
'WIN32'
],
#category : #'VMMaker-Interpreter'
}
Expand Down
3 changes: 2 additions & 1 deletion smalltalksrc/VMMaker/VMClass.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ VMClass class >> initializeMiscConstants [
SistaVM ifTrue: [self error: 'Sista VM works with spur VM only...']].

"And not these; they're compile-time"
IMMUTABILITY := InitializationOptions at: #IMMUTABILITY ifAbsent: [SPURVM] "Default as enabled for Spur VMs"
IMMUTABILITY := InitializationOptions at: #IMMUTABILITY ifAbsent: [SPURVM]. "Default as enabled for Spur VMs"
WIN32 := InitializationOptions at: #WIN32 ifAbsent: [false].
]

{ #category : #initialization }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ Class {
{ #category : #'initial addresses' }
VMMemoryMapConfigurationFor64Bits >> codeZoneInitialAddress [

self cppIf: WIN32 ifTrue: [ ^ 16r440000000 "17GB" ].

^ 16r240000000 "9GB"
]

{ #category : #'initial addresses' }
VMMemoryMapConfigurationFor64Bits >> newSpaceInitialAddress [

self cppIf: WIN32 ifTrue: [ ^ 16r480000000 "18GB" ].

^ 16r280000000 "10GB"
]

Expand All @@ -31,5 +35,7 @@ VMMemoryMapConfigurationFor64Bits >> permSpaceInitialAddress [
{ #category : #'initial addresses' }
VMMemoryMapConfigurationFor64Bits >> stackPagesInitialAddress [

self cppIf: WIN32 ifTrue: [ ^ 16r400000000 "16GB" ].

^ 16r200000000 "8GB"
]

0 comments on commit b0b0541

Please sign in to comment.