Project

General

Profile

Feature #9924

Revisitting GC.stat keys

Added by ko1 (Koichi Sasada) over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
[ruby-core:63021]

Description

Now, GC.stat returns internal information abuot GC.

However, key names are from internal implementations fields,
so that it is difficult to understand what they mean.

To solve this problem, I reconsider about key names.
https://docs.google.com/spreadsheets/d/11Ua4uBr6o0k-nORrZLEIIUkHJ9JRzRR0NyZfrhEEnc8/edit?usp=sharing

Any comments are welcome.


Related issues

Copied from Ruby master - Feature #9923: Revisitting GC.stat keysClosed06/09/2014Actions

Associated revisions

Revision 8ee9071c
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (rb_objspace_t::heap_pages): rename field names:
    • used -> allocated_pages
    • increment -> allocatable_pages
    • length -> sorted_length And remove unused `limt' field.
  • gc.c: rename macros:
    • heap_pages_used -> heap_allocated_pages
    • heap_pages_length -> heap_pages_sorted_length
    • heap_pages_increment -> heap_allocatable_pages
  • gc.c (gc_stat_internal): fix symbol names ref: [Feature #9924] https://docs.google.com/spreadsheets/d/11Ua4uBr6o0k-nORrZLEIIUkHJ9JRzRR0NyZfrhEEnc8/edit?usp=sharing Yellow color fields in this table are changed.
  • test/ruby/test_gc.rb: catch up this change.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 47471
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (rb_objspace_t::heap_pages): rename field names:
    • used -> allocated_pages
    • increment -> allocatable_pages
    • length -> sorted_length And remove unused `limt' field.
  • gc.c: rename macros:
    • heap_pages_used -> heap_allocated_pages
    • heap_pages_length -> heap_pages_sorted_length
    • heap_pages_increment -> heap_allocatable_pages
  • gc.c (gc_stat_internal): fix symbol names ref: [Feature #9924] https://docs.google.com/spreadsheets/d/11Ua4uBr6o0k-nORrZLEIIUkHJ9JRzRR0NyZfrhEEnc8/edit?usp=sharing Yellow color fields in this table are changed.
  • test/ruby/test_gc.rb: catch up this change.

Revision 47471
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (rb_objspace_t::heap_pages): rename field names:
    • used -> allocated_pages
    • increment -> allocatable_pages
    • length -> sorted_length And remove unused `limt' field.
  • gc.c: rename macros:
    • heap_pages_used -> heap_allocated_pages
    • heap_pages_length -> heap_pages_sorted_length
    • heap_pages_increment -> heap_allocatable_pages
  • gc.c (gc_stat_internal): fix symbol names ref: [Feature #9924] https://docs.google.com/spreadsheets/d/11Ua4uBr6o0k-nORrZLEIIUkHJ9JRzRR0NyZfrhEEnc8/edit?usp=sharing Yellow color fields in this table are changed.
  • test/ruby/test_gc.rb: catch up this change.

Revision 47471
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (rb_objspace_t::heap_pages): rename field names:
    • used -> allocated_pages
    • increment -> allocatable_pages
    • length -> sorted_length And remove unused `limt' field.
  • gc.c: rename macros:
    • heap_pages_used -> heap_allocated_pages
    • heap_pages_length -> heap_pages_sorted_length
    • heap_pages_increment -> heap_allocatable_pages
  • gc.c (gc_stat_internal): fix symbol names ref: [Feature #9924] https://docs.google.com/spreadsheets/d/11Ua4uBr6o0k-nORrZLEIIUkHJ9JRzRR0NyZfrhEEnc8/edit?usp=sharing Yellow color fields in this table are changed.
  • test/ruby/test_gc.rb: catch up this change.

Revision 47471
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (rb_objspace_t::heap_pages): rename field names:
    • used -> allocated_pages
    • increment -> allocatable_pages
    • length -> sorted_length And remove unused `limt' field.
  • gc.c: rename macros:
    • heap_pages_used -> heap_allocated_pages
    • heap_pages_length -> heap_pages_sorted_length
    • heap_pages_increment -> heap_allocatable_pages
  • gc.c (gc_stat_internal): fix symbol names ref: [Feature #9924] https://docs.google.com/spreadsheets/d/11Ua4uBr6o0k-nORrZLEIIUkHJ9JRzRR0NyZfrhEEnc8/edit?usp=sharing Yellow color fields in this table are changed.
  • test/ruby/test_gc.rb: catch up this change.

Revision 47471
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (rb_objspace_t::heap_pages): rename field names:
    • used -> allocated_pages
    • increment -> allocatable_pages
    • length -> sorted_length And remove unused `limt' field.
  • gc.c: rename macros:
    • heap_pages_used -> heap_allocated_pages
    • heap_pages_length -> heap_pages_sorted_length
    • heap_pages_increment -> heap_allocatable_pages
  • gc.c (gc_stat_internal): fix symbol names ref: [Feature #9924] https://docs.google.com/spreadsheets/d/11Ua4uBr6o0k-nORrZLEIIUkHJ9JRzRR0NyZfrhEEnc8/edit?usp=sharing Yellow color fields in this table are changed.
  • test/ruby/test_gc.rb: catch up this change.

Revision 47471
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (rb_objspace_t::heap_pages): rename field names:
    • used -> allocated_pages
    • increment -> allocatable_pages
    • length -> sorted_length And remove unused `limt' field.
  • gc.c: rename macros:
    • heap_pages_used -> heap_allocated_pages
    • heap_pages_length -> heap_pages_sorted_length
    • heap_pages_increment -> heap_allocatable_pages
  • gc.c (gc_stat_internal): fix symbol names ref: [Feature #9924] https://docs.google.com/spreadsheets/d/11Ua4uBr6o0k-nORrZLEIIUkHJ9JRzRR0NyZfrhEEnc8/edit?usp=sharing Yellow color fields in this table are changed.
  • test/ruby/test_gc.rb: catch up this change.

Revision 6c625427
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (objspace_total_slot): rename objspace_available_slots.
  • gc.c (objspace_live_slot, objspace_free_slot): rename ..._slot() to ..._slots().
  • gc.c (objspace_free_slot): should subtract heap_pages_final_slots.
  • gc.c (gc_stat_internal):
    • add `heap_available_slots' field
    • rename heap_live_slot to heap_live_slots
    • rename heap_free_slot to heap_free_slots ref: [Feature #9924]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 47488
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (objspace_total_slot): rename objspace_available_slots.
  • gc.c (objspace_live_slot, objspace_free_slot): rename ..._slot() to ..._slots().
  • gc.c (objspace_free_slot): should subtract heap_pages_final_slots.
  • gc.c (gc_stat_internal):
    • add `heap_available_slots' field
    • rename heap_live_slot to heap_live_slots
    • rename heap_free_slot to heap_free_slots ref: [Feature #9924]

Revision 47488
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (objspace_total_slot): rename objspace_available_slots.
  • gc.c (objspace_live_slot, objspace_free_slot): rename ..._slot() to ..._slots().
  • gc.c (objspace_free_slot): should subtract heap_pages_final_slots.
  • gc.c (gc_stat_internal):
    • add `heap_available_slots' field
    • rename heap_live_slot to heap_live_slots
    • rename heap_free_slot to heap_free_slots ref: [Feature #9924]

Revision 47488
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (objspace_total_slot): rename objspace_available_slots.
  • gc.c (objspace_live_slot, objspace_free_slot): rename ..._slot() to ..._slots().
  • gc.c (objspace_free_slot): should subtract heap_pages_final_slots.
  • gc.c (gc_stat_internal):
    • add `heap_available_slots' field
    • rename heap_live_slot to heap_live_slots
    • rename heap_free_slot to heap_free_slots ref: [Feature #9924]

Revision 47488
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (objspace_total_slot): rename objspace_available_slots.
  • gc.c (objspace_live_slot, objspace_free_slot): rename ..._slot() to ..._slots().
  • gc.c (objspace_free_slot): should subtract heap_pages_final_slots.
  • gc.c (gc_stat_internal):
    • add `heap_available_slots' field
    • rename heap_live_slot to heap_live_slots
    • rename heap_free_slot to heap_free_slots ref: [Feature #9924]

Revision 47488
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (objspace_total_slot): rename objspace_available_slots.
  • gc.c (objspace_live_slot, objspace_free_slot): rename ..._slot() to ..._slots().
  • gc.c (objspace_free_slot): should subtract heap_pages_final_slots.
  • gc.c (gc_stat_internal):
    • add `heap_available_slots' field
    • rename heap_live_slot to heap_live_slots
    • rename heap_free_slot to heap_free_slots ref: [Feature #9924]

Revision 47488
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (objspace_total_slot): rename objspace_available_slots.
  • gc.c (objspace_live_slot, objspace_free_slot): rename ..._slot() to ..._slots().
  • gc.c (objspace_free_slot): should subtract heap_pages_final_slots.
  • gc.c (gc_stat_internal):
    • add `heap_available_slots' field
    • rename heap_live_slot to heap_live_slots
    • rename heap_free_slot to heap_free_slots ref: [Feature #9924]

Revision 2d581d6c
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): support:
    • total_allocated_pages
    • total_freed_pages ref: [Feature #9924]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 47490
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): support:
    • total_allocated_pages
    • total_freed_pages ref: [Feature #9924]

Revision 47490
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): support:
    • total_allocated_pages
    • total_freed_pages ref: [Feature #9924]

Revision 47490
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): support:
    • total_allocated_pages
    • total_freed_pages ref: [Feature #9924]

Revision 47490
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): support:
    • total_allocated_pages
    • total_freed_pages ref: [Feature #9924]

Revision 47490
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): support:
    • total_allocated_pages
    • total_freed_pages ref: [Feature #9924]

Revision 47490
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): support:
    • total_allocated_pages
    • total_freed_pages ref: [Feature #9924]

Revision 6b398398
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename:
    • remembered_shady_object -> remembered_wb_unprotected_objects
    • remembered_shady_object_limit -> remembered_wb_unprotected_objects_limit
    • old_object -> old_objects
    • old_object_limit -> old_objects_limit ref: [Feature #9924]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 47491
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename:
    • remembered_shady_object -> remembered_wb_unprotected_objects
    • remembered_shady_object_limit -> remembered_wb_unprotected_objects_limit
    • old_object -> old_objects
    • old_object_limit -> old_objects_limit ref: [Feature #9924]

Revision 47491
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename:
    • remembered_shady_object -> remembered_wb_unprotected_objects
    • remembered_shady_object_limit -> remembered_wb_unprotected_objects_limit
    • old_object -> old_objects
    • old_object_limit -> old_objects_limit ref: [Feature #9924]

Revision 47491
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename:
    • remembered_shady_object -> remembered_wb_unprotected_objects
    • remembered_shady_object_limit -> remembered_wb_unprotected_objects_limit
    • old_object -> old_objects
    • old_object_limit -> old_objects_limit ref: [Feature #9924]

Revision 47491
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename:
    • remembered_shady_object -> remembered_wb_unprotected_objects
    • remembered_shady_object_limit -> remembered_wb_unprotected_objects_limit
    • old_object -> old_objects
    • old_object_limit -> old_objects_limit ref: [Feature #9924]

Revision 47491
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename:
    • remembered_shady_object -> remembered_wb_unprotected_objects
    • remembered_shady_object_limit -> remembered_wb_unprotected_objects_limit
    • old_object -> old_objects
    • old_object_limit -> old_objects_limit ref: [Feature #9924]

Revision 47491
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename:
    • remembered_shady_object -> remembered_wb_unprotected_objects
    • remembered_shady_object_limit -> remembered_wb_unprotected_objects_limit
    • old_object -> old_objects
    • old_object_limit -> old_objects_limit ref: [Feature #9924]

Revision ed729d39
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename heap_used' toheap_allocated_pages'. ref: [Feature #9924]
  • test/ruby/test_gc.rb: add constraints test for gc stat information.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 47493
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename heap_used' toheap_allocated_pages'. ref: [Feature #9924]
  • test/ruby/test_gc.rb: add constraints test for gc stat information.

Revision 47493
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename heap_used' toheap_allocated_pages'. ref: [Feature #9924]
  • test/ruby/test_gc.rb: add constraints test for gc stat information.

Revision 47493
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename heap_used' toheap_allocated_pages'. ref: [Feature #9924]
  • test/ruby/test_gc.rb: add constraints test for gc stat information.

Revision 47493
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename heap_used' toheap_allocated_pages'. ref: [Feature #9924]
  • test/ruby/test_gc.rb: add constraints test for gc stat information.

Revision 47493
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename heap_used' toheap_allocated_pages'. ref: [Feature #9924]
  • test/ruby/test_gc.rb: add constraints test for gc stat information.

Revision 47493
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename heap_used' toheap_allocated_pages'. ref: [Feature #9924]
  • test/ruby/test_gc.rb: add constraints test for gc stat information.

Revision 52c41f1e
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename:
    • malloc_increase -> malloc_increase_bytes
    • malloc_limit -> malloc_increase_bytes_limit
    • oldmalloc_increase -> oldmalloc_increase_bytes
    • oldmalloc_limit -> oldmalloc_increase_bytes_limit ref: [Feature #9924]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 47495
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename:
    • malloc_increase -> malloc_increase_bytes
    • malloc_limit -> malloc_increase_bytes_limit
    • oldmalloc_increase -> oldmalloc_increase_bytes
    • oldmalloc_limit -> oldmalloc_increase_bytes_limit ref: [Feature #9924]

Revision 47495
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename:
    • malloc_increase -> malloc_increase_bytes
    • malloc_limit -> malloc_increase_bytes_limit
    • oldmalloc_increase -> oldmalloc_increase_bytes
    • oldmalloc_limit -> oldmalloc_increase_bytes_limit ref: [Feature #9924]

Revision 47495
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename:
    • malloc_increase -> malloc_increase_bytes
    • malloc_limit -> malloc_increase_bytes_limit
    • oldmalloc_increase -> oldmalloc_increase_bytes
    • oldmalloc_limit -> oldmalloc_increase_bytes_limit ref: [Feature #9924]

Revision 47495
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename:
    • malloc_increase -> malloc_increase_bytes
    • malloc_limit -> malloc_increase_bytes_limit
    • oldmalloc_increase -> oldmalloc_increase_bytes
    • oldmalloc_limit -> oldmalloc_increase_bytes_limit ref: [Feature #9924]

Revision 47495
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename:
    • malloc_increase -> malloc_increase_bytes
    • malloc_limit -> malloc_increase_bytes_limit
    • oldmalloc_increase -> oldmalloc_increase_bytes
    • oldmalloc_limit -> oldmalloc_increase_bytes_limit ref: [Feature #9924]

Revision 47495
Added by ko1 (Koichi Sasada) about 5 years ago

  • gc.c (gc_stat_internal): rename:
    • malloc_increase -> malloc_increase_bytes
    • malloc_limit -> malloc_increase_bytes_limit
    • oldmalloc_increase -> oldmalloc_increase_bytes
    • oldmalloc_limit -> oldmalloc_increase_bytes_limit ref: [Feature #9924]

Revision 5d5c95f2
Added by ko1 (Koichi Sasada) almost 5 years ago

  • gc.c (gc_stat_internal): add compatible layer. From Ruby 2.2, keys of GC.stat are changed [Feature #9924]. To provide compatible layer, GC.stat add a default_proc (if default_proc of given Hash object is not set). At first use of this compatible layer of interpreter process, show a warning message like that: program: GC.stat[:total_allocated_object] warning message: "warning: GC.stat keys were changed from Ruby 2.1. In this case, you refer to obsolete total_allocated_object' (new key istotal_allocated_objects'). Please check https://bugs.ruby-lang.org/issues/9924 for more information." Pleaes correct my English message :)
  • hash.c (rb_hash_set_default_proc): export (in internal).
  • internal.h: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 48423
Added by ko1 (Koichi Sasada) almost 5 years ago

  • gc.c (gc_stat_internal): add compatible layer. From Ruby 2.2, keys of GC.stat are changed [Feature #9924]. To provide compatible layer, GC.stat add a default_proc (if default_proc of given Hash object is not set). At first use of this compatible layer of interpreter process, show a warning message like that: program: GC.stat[:total_allocated_object] warning message: "warning: GC.stat keys were changed from Ruby 2.1. In this case, you refer to obsolete total_allocated_object' (new key istotal_allocated_objects'). Please check https://bugs.ruby-lang.org/issues/9924 for more information." Pleaes correct my English message :)
  • hash.c (rb_hash_set_default_proc): export (in internal).
  • internal.h: ditto.

Revision 48423
Added by ko1 (Koichi Sasada) almost 5 years ago

  • gc.c (gc_stat_internal): add compatible layer. From Ruby 2.2, keys of GC.stat are changed [Feature #9924]. To provide compatible layer, GC.stat add a default_proc (if default_proc of given Hash object is not set). At first use of this compatible layer of interpreter process, show a warning message like that: program: GC.stat[:total_allocated_object] warning message: "warning: GC.stat keys were changed from Ruby 2.1. In this case, you refer to obsolete total_allocated_object' (new key istotal_allocated_objects'). Please check https://bugs.ruby-lang.org/issues/9924 for more information." Pleaes correct my English message :)
  • hash.c (rb_hash_set_default_proc): export (in internal).
  • internal.h: ditto.

Revision 48423
Added by ko1 (Koichi Sasada) almost 5 years ago

  • gc.c (gc_stat_internal): add compatible layer. From Ruby 2.2, keys of GC.stat are changed [Feature #9924]. To provide compatible layer, GC.stat add a default_proc (if default_proc of given Hash object is not set). At first use of this compatible layer of interpreter process, show a warning message like that: program: GC.stat[:total_allocated_object] warning message: "warning: GC.stat keys were changed from Ruby 2.1. In this case, you refer to obsolete total_allocated_object' (new key istotal_allocated_objects'). Please check https://bugs.ruby-lang.org/issues/9924 for more information." Pleaes correct my English message :)
  • hash.c (rb_hash_set_default_proc): export (in internal).
  • internal.h: ditto.

Revision 48423
Added by ko1 (Koichi Sasada) almost 5 years ago

  • gc.c (gc_stat_internal): add compatible layer. From Ruby 2.2, keys of GC.stat are changed [Feature #9924]. To provide compatible layer, GC.stat add a default_proc (if default_proc of given Hash object is not set). At first use of this compatible layer of interpreter process, show a warning message like that: program: GC.stat[:total_allocated_object] warning message: "warning: GC.stat keys were changed from Ruby 2.1. In this case, you refer to obsolete total_allocated_object' (new key istotal_allocated_objects'). Please check https://bugs.ruby-lang.org/issues/9924 for more information." Pleaes correct my English message :)
  • hash.c (rb_hash_set_default_proc): export (in internal).
  • internal.h: ditto.

Revision 48423
Added by ko1 (Koichi Sasada) almost 5 years ago

  • gc.c (gc_stat_internal): add compatible layer. From Ruby 2.2, keys of GC.stat are changed [Feature #9924]. To provide compatible layer, GC.stat add a default_proc (if default_proc of given Hash object is not set). At first use of this compatible layer of interpreter process, show a warning message like that: program: GC.stat[:total_allocated_object] warning message: "warning: GC.stat keys were changed from Ruby 2.1. In this case, you refer to obsolete total_allocated_object' (new key istotal_allocated_objects'). Please check https://bugs.ruby-lang.org/issues/9924 for more information." Pleaes correct my English message :)
  • hash.c (rb_hash_set_default_proc): export (in internal).
  • internal.h: ditto.

Revision 48423
Added by ko1 (Koichi Sasada) almost 5 years ago

  • gc.c (gc_stat_internal): add compatible layer. From Ruby 2.2, keys of GC.stat are changed [Feature #9924]. To provide compatible layer, GC.stat add a default_proc (if default_proc of given Hash object is not set). At first use of this compatible layer of interpreter process, show a warning message like that: program: GC.stat[:total_allocated_object] warning message: "warning: GC.stat keys were changed from Ruby 2.1. In this case, you refer to obsolete total_allocated_object' (new key istotal_allocated_objects'). Please check https://bugs.ruby-lang.org/issues/9924 for more information." Pleaes correct my English message :)
  • hash.c (rb_hash_set_default_proc): export (in internal).
  • internal.h: ditto.

History

Updated by ko1 (Koichi Sasada) over 5 years ago

Updated by ko1 (Koichi Sasada) about 5 years ago

No objection?

Updated by ko1 (Koichi Sasada) about 5 years ago

I got Matz's approval.

Updated by ko1 (Koichi Sasada) about 5 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r47471.


  • gc.c (rb_objspace_t::heap_pages): rename field names:
    • used -> allocated_pages
    • increment -> allocatable_pages
    • length -> sorted_length And remove unused `limt' field.
  • gc.c: rename macros:
    • heap_pages_used -> heap_allocated_pages
    • heap_pages_length -> heap_pages_sorted_length
    • heap_pages_increment -> heap_allocatable_pages
  • gc.c (gc_stat_internal): fix symbol names ref: [Feature #9924] https://docs.google.com/spreadsheets/d/11Ua4uBr6o0k-nORrZLEIIUkHJ9JRzRR0NyZfrhEEnc8/edit?usp=sharing Yellow color fields in this table are changed.
  • test/ruby/test_gc.rb: catch up this change.

Updated by ko1 (Koichi Sasada) about 5 years ago

  • Status changed from Closed to Open

r47472
r47473
r47474

are also related changes (and not finished).

These fixes break prorgrams depends on specific GC.stat() keys.

Any other objections?

Updated by ko1 (Koichi Sasada) about 5 years ago

  • Status changed from Open to Closed

Applied in changeset r47488.


  • gc.c (objspace_total_slot): rename objspace_available_slots.
  • gc.c (objspace_live_slot, objspace_free_slot): rename ..._slot() to ..._slots().
  • gc.c (objspace_free_slot): should subtract heap_pages_final_slots.
  • gc.c (gc_stat_internal):
    • add `heap_available_slots' field
    • rename heap_live_slot to heap_live_slots
    • rename heap_free_slot to heap_free_slots ref: [Feature #9924]

Updated by ko1 (Koichi Sasada) almost 5 years ago

  • Status changed from Open to Closed

Applied in changeset r48423.


  • gc.c (gc_stat_internal): add compatible layer. From Ruby 2.2, keys of GC.stat are changed [Feature #9924]. To provide compatible layer, GC.stat add a default_proc (if default_proc of given Hash object is not set). At first use of this compatible layer of interpreter process, show a warning message like that: program: GC.stat[:total_allocated_object] warning message: "warning: GC.stat keys were changed from Ruby 2.1. In this case, you refer to obsolete total_allocated_object' (new key istotal_allocated_objects'). Please check https://bugs.ruby-lang.org/issues/9924 for more information." Pleaes correct my English message :)
  • hash.c (rb_hash_set_default_proc): export (in internal).
  • internal.h: ditto.

Also available in: Atom PDF