@@ -69,7 +69,7 @@ fn get_current_memory_linux() -> usize {
69
69
}
70
70
71
71
fn get_current_memory ( ) -> usize {
72
- if !cfg ! ( linux) {
72
+ if !cfg ! ( target_os = " linux" ) {
73
73
get_current_memory_linux ( )
74
74
} else {
75
75
let pid = format ! ( "{}" , id( ) ) ;
@@ -168,8 +168,7 @@ fn check_asm(memory_size: usize) -> Result<(), ()> {
168
168
) ;
169
169
println ! ( "Base memory: {}" , get_current_memory( ) ) ;
170
170
for _ in 0 ..G_CHECK_LOOP {
171
- let asm_core =
172
- AsmCoreMachine :: new_with_memory ( ISA_IMC , VERSION0 , u64:: max_value ( ) , memory_size) ;
171
+ let asm_core = AsmCoreMachine :: new_with_memory ( ISA_IMC , VERSION0 , u64:: MAX , memory_size) ;
173
172
let core = DefaultMachineBuilder :: new ( asm_core) . build ( ) ;
174
173
let mut machine = AsmMachine :: new ( core) ;
175
174
machine
@@ -193,8 +192,7 @@ fn check_asm_in_thread(memory_size: usize) -> Result<(), ()> {
193
192
) ;
194
193
println ! ( "Base memory: {}" , get_current_memory( ) ) ;
195
194
for _ in 0 ..G_CHECK_LOOP {
196
- let asm_core =
197
- AsmCoreMachine :: new_with_memory ( ISA_IMC , VERSION0 , u64:: max_value ( ) , memory_size) ;
195
+ let asm_core = AsmCoreMachine :: new_with_memory ( ISA_IMC , VERSION0 , u64:: MAX , memory_size) ;
198
196
let core = DefaultMachineBuilder :: new ( asm_core) . build ( ) ;
199
197
let mut machine = AsmMachine :: new ( core) ;
200
198
machine
0 commit comments