From 87a120fbdc25544135e8d625e8dc11950b7245a3 Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 14 Jun 2013 09:23:54 +0000 Subject: * class.c, include/ruby/ruby.h: add write barriers for T_CLASS, T_MODULE, T_ICLASS. * constant.h: constify rb_const_entry_t::value and file to detect assignment. * variable.c, internal.h (rb_st_insert_id_and_value, rb_st_copy): added. update table with write barrier. * method.h: constify some variables to detect assignment. * object.c (init_copy): add WBs. * variable.c: ditto. * vm_method.c (rb_add_method): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- constant.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'constant.h') diff --git a/constant.h b/constant.h index 9354241961..3dc9b8d4ef 100644 --- a/constant.h +++ b/constant.h @@ -18,8 +18,8 @@ typedef enum { typedef struct rb_const_entry_struct { rb_const_flag_t flag; - VALUE value; /* should be mark */ - VALUE file; + const VALUE value; /* should be mark */ + const VALUE file; /* should be mark */ int line; } rb_const_entry_t; -- cgit v1.2.3