Skip to content

Commit e6a18f3

Browse files
committed
Experiment with not setting a max size by default at all
1 parent df3fcb0 commit e6a18f3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/gc.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3584,12 +3584,6 @@ void jl_gc_init(void)
35843584
uint64_t constrained_mem = uv_get_constrained_memory();
35853585
if (constrained_mem > 0 && constrained_mem < total_mem)
35863586
total_mem = constrained_mem;
3587-
double percent;
3588-
if (total_mem < 128e9)
3589-
percent = total_mem * 2.34375e-12 + 0.6; // 60% at 0 gigs and 90% at 128 to not
3590-
else // overcommit too much on memory contrained devices
3591-
percent = 0.8;
3592-
max_total_memory = total_mem * percent;
35933587
#endif
35943588
if (jl_options.heap_size_hint)
35953589
jl_gc_set_max_memory(jl_options.heap_size_hint);

0 commit comments

Comments
 (0)