Commit 05fd60cc authored by Isaac Oscar Gariano's avatar Isaac Oscar Gariano

Added MU_IMMIX_SPACE enviornment variable, and made pypy compile more

parent 0b05b96d
Pipeline #1202 passed with stages
in 52 minutes and 34 seconds
......@@ -318,11 +318,16 @@ impl<'a> VM {
/// initializes runtime
fn init_runtime(&self) {
use std::env;
// init gc
{
let ref options = self.vm_options;
let immixspace_size = match env::var("MU_IMMIX_SPACE") {
Ok(s) => s.parse::<usize>().unwrap(),
_ => options.flag_gc_immixspace_size
};
gc::gc_init(
options.flag_gc_immixspace_size,
immixspace_size,
options.flag_gc_lospace_size,
options.flag_gc_nthreads,
!options.flag_gc_disable_collection
......
......@@ -30,7 +30,7 @@ def test_PyPy():
flags = ['-O3', '--no-shared', '--backend=mu', '--mu-impl=zebu',
'--mu-vmargs', '--gc-immixspace-size=10737418240', '--mu-suplibdir=%(bin_dir)s' % globals()]
# flags = ['-O3', '--no-shared', '--backend=c', '--no-profopt']
args = ['--no-allworkingmodules']
args = ['--no-allworkingmodules', '--pybenchmodules']
cmd.extend(flags)
cmd.extend(['--output=%s' % target])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment