diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-30 22:01:17 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-30 22:01:17 +0000 |
commit | 873d57347fca4fc7f407c2bca45f90797ab6f864 (patch) | |
tree | 984633263d735f6ead2991ea6f6b8a71e1ed68ed /internal.h | |
parent | 437392232a142b9e56d7d6daa1e595dacb00c9db (diff) |
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@65451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal.h b/internal.h index ffe84528db..b680c8c79b 100644 --- a/internal.h +++ b/internal.h @@ -1922,6 +1922,9 @@ extern rb_encoding OnigEncodingUTF_8; #endif /* variable.c */ +#define ROBJECT_TRANSIENT_FLAG FL_USER13 +#define ROBJ_TRANSIENT_P(obj) FL_TEST_RAW((obj), ROBJECT_TRANSIENT_FLAG) + void rb_gc_mark_global_tbl(void); size_t rb_generic_ivar_memsize(VALUE); VALUE rb_search_class_path(VALUE); |