Set flag --wasm-gc only for GC tests to improve performance.

This commit is contained in:
Volker Berlin 2019-09-22 17:09:12 +02:00
parent 53319942ae
commit e3eb66efc9

View File

@ -537,7 +537,11 @@ public class WasmRule extends TemporaryFolder {
compiler.setProperty( JWebAssembly.WASM_USE_GC, null );
System.clearProperty( "SpiderMonkey" );
}
return new ProcessBuilder( spiderMonkey.getCommand(), "--wasm-gc", /*"--wasm-bigint",*/ script.getAbsolutePath() );
ProcessBuilder process = new ProcessBuilder( spiderMonkey.getCommand(), /*"--wasm-bigint",*/ script.getAbsolutePath() );
if( gc ) {
process.command().add( 1, "--wasm-gc" );
}
return process;
}
/**