Skip to content

Commit 761475a

Browse files
committed
Use variable heap size if min and max heap is not the same
1 parent 21fce03 commit 761475a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mmtk/src/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub extern "C" fn mmtk_gc_init(
6666
.options
6767
.gc_trigger
6868
.set(mmtk::util::options::GCTriggerSelector::Delegated)
69-
} else if min_heap_size != 0 {
69+
} else if min_heap_size != 0 && min_heap_size != max_heap_size{
7070
info!(
7171
"Setting mmtk heap size to a variable size with min-max of {}-{} (in bytes)",
7272
min_heap_size, max_heap_size

0 commit comments

Comments
 (0)