WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.2% of users enabled 2FA.

vm_options.rs 566 Bytes
Newer Older
qinsoon's avatar
qinsoon committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
use std::default::Default;
use utils::ByteSize;

pub struct VMOptions {
    // gc options
    pub immix_size: ByteSize,
    pub lo_size: ByteSize,
    pub n_gcthreads: usize
}

pub const DEFAULT_IMMIX_SIZE : ByteSize = 1 << 16;  // 64Mb
pub const DEFAULT_LO_SIZE    : ByteSize = 1 << 16;  // 64Mb
pub const DEFAULT_N_GCTHREADS: usize = 8;

impl Default for VMOptions {
    fn default() -> VMOptions {
        VMOptions {
            immix_size: DEFAULT_IMMIX_SIZE,
            lo_size: DEFAULT_LO_SIZE,
            n_gcthreads: DEFAULT_N_GCTHREADS
        }
    }
qinsoon's avatar
qinsoon committed
23
}