mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* gc.c (is_incremental_marking): use #if/#else because
rb_objspace_t:🎏:during_incremental_marking is not defined
when GC_ENABLE_INCREMENTAL_MARK is 0.
* gc.c (will_be_incremental_marking, is_full_marking): similar fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
93ccab82c5
commit
a11aa75662
2 changed files with 22 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
Sun Nov 9 13:47:02 2014 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (is_incremental_marking): use #if/#else because
|
||||
rb_objspace_t::flags::during_incremental_marking is not defined
|
||||
when GC_ENABLE_INCREMENTAL_MARK is 0.
|
||||
|
||||
* gc.c (will_be_incremental_marking, is_full_marking): similar fix.
|
||||
|
||||
Sun Nov 9 12:16:22 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/securerandom.rb (SecureRandom.gen_random): separate
|
||||
|
|
16
gc.c
16
gc.c
|
@ -694,9 +694,21 @@ VALUE *ruby_initial_gc_stress_ptr = &ruby_initial_gc_stress;
|
|||
|
||||
#define is_marking(objspace) ((objspace)->flags.stat == gc_stat_marking)
|
||||
#define is_sweeping(objspace) ((objspace)->flags.stat == gc_stat_sweeping)
|
||||
#if USE_RGENGC
|
||||
#define is_full_marking(objspace) ((objspace)->flags.during_minor_gc == FALSE)
|
||||
#define is_incremental_marking(objspace) (GC_ENABLE_INCREMENTAL_MARK && (objspace)->flags.during_incremental_marking != FALSE)
|
||||
#define will_be_incremental_marking(objspace) (GC_ENABLE_INCREMENTAL_MARK && (objspace)->rgengc.need_major_gc != GPR_FLAG_NONE)
|
||||
#else
|
||||
#define is_full_marking(objspace) TRUE
|
||||
#endif
|
||||
#if GC_ENABLE_INCREMENTAL_MARK
|
||||
#define is_incremental_marking(objspace) ((objspace)->flags.during_incremental_marking != FALSE)
|
||||
#else
|
||||
#define is_incremental_marking(objspace) FALSE
|
||||
#endif
|
||||
#if GC_ENABLE_INCREMENTAL_MARK
|
||||
#define will_be_incremental_marking(objspace) ((objspace)->rgengc.need_major_gc != GPR_FLAG_NONE)
|
||||
#else
|
||||
#define will_be_incremental_marking(objspace) FALSE
|
||||
#endif
|
||||
#define has_sweeping_pages(heap) ((heap)->sweep_pages != 0)
|
||||
#define is_lazy_sweeping(heap) (GC_ENABLE_LAZY_SWEEP && has_sweeping_pages(heap))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue