summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-01-17 20:36:49 +0000
committerEric Wong <normal@ruby-lang.org>2022-04-04 21:46:02 +0000
commita19b2d59fc85abbb064d3923211161ba158c2fcb (patch)
tree524502c7ed6b3522bf3c1c7c1e7614a63dafd90d /time.c
parent4a4485adbd13a75019ece34490b291da1dde8d91 (diff)
ruby_gc_set_params: update malloc_limit when env is set
During VM startup, rb_objspace_alloc sets malloc_limit (objspace->malloc_params.limit) before ruby_gc_set_params is called, thus nullifying the effect of RUBY_GC_MALLOC_LIMIT before the initial GC run. The call sequence is as follows: main.c::main() ruby_init ruby_setup Init_BareVM rb_objspace_alloc // malloc_limit = gc_params.malloc_limit_min; ruby_options ruby_process_options process_options ruby_gc_set_params // RUBY_GC_MALLOC_LIMIT => gc_params.malloc_limit_min With ruby_gc_set_params setting malloc_limit, RUBY_GC_MALLOC_LIMIT affects the process sooner. [ruby-core:107170]
Diffstat (limited to 'time.c')
0 files changed, 0 insertions, 0 deletions