Skip to content

Commit 10eee49

Browse files
committed
Fix a mistake in calculating min nursery. Change default min nursery on
64 bits back to 2m (from 20m)
1 parent c7e2286 commit 10eee49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/util/heap/gc_trigger.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl<VM: VMBinding> GCTrigger<VM> {
147147
let min_bytes = conversions::raw_align_up(min_bytes as usize, BYTES_IN_PAGE);
148148
if min_bytes < DEFAULT_MIN_NURSERY {
149149
warn!("Proportional nursery with min size {} ({}) is smaller than DEFAULT_MIN_NURSERY ({}). Use DEFAULT_MIN_NURSERY instead.", min, min_bytes, DEFAULT_MIN_NURSERY);
150-
DEFAULT_MAX_NURSERY
150+
DEFAULT_MIN_NURSERY
151151
} else {
152152
min_bytes
153153
}

src/util/options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl FromStr for PerfEventOptions {
101101
/// The default min nursery size. This does not affect the actual space we create as nursery. It is
102102
/// only used in the GC trigger check.
103103
#[cfg(target_pointer_width = "64")]
104-
pub const DEFAULT_MIN_NURSERY: usize = 20 << LOG_BYTES_IN_MBYTE;
104+
pub const DEFAULT_MIN_NURSERY: usize = 2 << LOG_BYTES_IN_MBYTE;
105105
/// The default max nursery size. This does not affect the actual space we create as nursery. It is
106106
/// only used in the GC trigger check.
107107
#[cfg(target_pointer_width = "64")]

0 commit comments

Comments
 (0)