ruby-changes:55506
From: Nobuyoshi <ko1@a...>
Date: Wed, 24 Apr 2019 21:34:45 +0900 (JST)
Subject: [ruby-changes:55506] Nobuyoshi Nakada:1613917ae6 (trunk): Defer setting gc stress instead of s=etting dont gc=
Nobuyoshi Nakada 2019-04-24 17:34:21 +0900 (Wed, 24 Apr 2019) New Revision: 1613917ae6 https://git.ruby-lang.org/ruby.git/commit/?id=3D1613917ae6 Log: Defer setting gc_stress instead of setting dont_gc = [Bug #15784] Modified files: gc.c= From 1613917ae6441b98a52d885f0df1479652be755d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 24 Apr 2019 17:34:21 +0900 Subject: Defer setting gc_stress instead of setting dont_gc [Bug #15784] diff --git a/gc.c b/gc.c index a12854d..82199bb 100644 --- a/gc.c +++ b/gc.c @@ -2571,10 +2571,6 @@ Init_heap(void) https://github.com/ruby/ruby/blob/trunk/#L2571 objspace->id_to_obj_tbl = st_init_numtable(); objspace->obj_to_id_tbl = st_init_numtable(); - dont_gc = 1; - - gc_stress_set(objspace, ruby_initial_gc_stress); - #if RGENGC_ESTIMATE_OLDMALLOC objspace->rgengc.oldmalloc_increase_limit = gc_params.oldmalloc_limit_min; #endif @@ -2591,7 +2587,7 @@ Init_gc_stress(void) https://github.com/ruby/ruby/blob/trunk/#L2587 { rb_objspace_t *objspace = &rb_objspace; - dont_gc = 0; + gc_stress_set(objspace, ruby_initial_gc_stress); } typedef int each_obj_callback(void *, void *, size_t, void *); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/