mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
support theap for T_OBJECT.
* variable.c: now instance variable space has theap supports. obj_ivar_heap_alloc() tries to acquire memory from theap. * debug_counter.h: add some counters for theap. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f926f799e9
commit
efe869c0e5
4 changed files with 152 additions and 50 deletions
|
|
@ -141,6 +141,7 @@ RB_DEBUG_COUNTER(gc_major_oldmalloc)
|
|||
* * [attr]
|
||||
* * _ptr: R?? is not embed.
|
||||
* * _embed: R?? is embed.
|
||||
* * _transient: R?? uses transient heap.
|
||||
* * type specific attr.
|
||||
* * str_shared: str is shared.
|
||||
* * str_nofree: nofree
|
||||
|
|
@ -162,8 +163,9 @@ RB_DEBUG_COUNTER(obj_free)
|
|||
RB_DEBUG_COUNTER(obj_promote)
|
||||
RB_DEBUG_COUNTER(obj_wb_unprotect)
|
||||
|
||||
RB_DEBUG_COUNTER(obj_obj_ptr)
|
||||
RB_DEBUG_COUNTER(obj_obj_embed)
|
||||
RB_DEBUG_COUNTER(obj_obj_transient)
|
||||
RB_DEBUG_COUNTER(obj_obj_ptr)
|
||||
|
||||
RB_DEBUG_COUNTER(obj_str_ptr)
|
||||
RB_DEBUG_COUNTER(obj_str_embed)
|
||||
|
|
@ -171,8 +173,9 @@ RB_DEBUG_COUNTER(obj_str_shared)
|
|||
RB_DEBUG_COUNTER(obj_str_nofree)
|
||||
RB_DEBUG_COUNTER(obj_str_fstr)
|
||||
|
||||
RB_DEBUG_COUNTER(obj_ary_ptr)
|
||||
RB_DEBUG_COUNTER(obj_ary_embed)
|
||||
RB_DEBUG_COUNTER(obj_ary_transient)
|
||||
RB_DEBUG_COUNTER(obj_ary_ptr)
|
||||
|
||||
RB_DEBUG_COUNTER(obj_hash_empty)
|
||||
RB_DEBUG_COUNTER(obj_hash_under4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue